Skip to content

Commit

Permalink
ci: Add dispatch input var for tmate session (#215)
Browse files Browse the repository at this point in the history
* ci: Add dispatch input var for tmate session

* Change condition

* revert k8s version change

---------

Co-authored-by: Mohammed Naser <[email protected]>
  • Loading branch information
okozachenko1203 and mnaser committed Oct 2, 2023
1 parent d599617 commit 66ce645
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@ on:
paths-ignore:
- "docs/**"
- README.md
workflow_dispatch:
inputs:
debug_enabled:
type: boolean
description: 'Run the build with tmate session (https://github.com/marketplace/actions/debugging-with-tmate)'
required: false
default: false

jobs:
build:
Expand Down Expand Up @@ -217,9 +224,6 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

# - name: Setup "tmate" session
# uses: mxschmitt/action-tmate@v3

- name: Wait for images
if: contains(github.event.pull_request.body, '/build-new-image')
uses: lewagon/[email protected]
Expand All @@ -244,6 +248,10 @@ jobs:
KUBE_TAG: "${{ matrix.kube }}"
NODE_COUNT: 2

- name: Setup "tmate" session
if: github.event_name == 'workflow_dispatch' && inputs.debug_enabled && failure()
uses: mxschmitt/action-tmate@v3

- name: Upload Sonobuoy results
uses: actions/upload-artifact@v3
if: always()
Expand Down

0 comments on commit 66ce645

Please sign in to comment.