-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: Add dispatch input var for tmate session (#215)
* ci: Add dispatch input var for tmate session * Change condition * revert k8s version change --------- Co-authored-by: Mohammed Naser <[email protected]>
- Loading branch information
1 parent
d599617
commit 66ce645
Showing
1 changed file
with
11 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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: | ||
|
@@ -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] | ||
|
@@ -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() | ||
|