Skip to content

Commit

Permalink
Fixing a snag [gha-debug]
Browse files Browse the repository at this point in the history
  • Loading branch information
pshriwise authored Oct 14, 2024
1 parent 1be6045 commit 35f8dfa
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,14 +111,6 @@ jobs:
echo ${COMMIT_MESSAGE}
echo "COMMIT_MESSAGE=${COMMIT_MESSAGE}" >> $GITHUB_ENV
- name: Setup tmate debug session
# only setup tmate if the following key is in the commit message
if: ${{ contains(env.COMMIT_MESSAGE, '[gha-debug]') }}
uses: mxschmitt/action-tmate@v3
with:
# starts a tmate session and allows workflow to continue
detached: true

- name: Apt dependencies
shell: bash
run: |
Expand Down Expand Up @@ -173,6 +165,12 @@ jobs:
CTEST_OUTPUT_ON_FAILURE=1 make test -C $GITHUB_WORKSPACE/build/
$GITHUB_WORKSPACE/tools/ci/gha-script.sh
- name: Setup tmate debug session
continue-on-error: true
if: ${{ contains(env.COMMIT_MESSAGE, '[gha-debug]') }}
uses: mxschmitt/action-tmate@v3
timeout-minutes: 10

- name: after_success
shell: bash
run: |
Expand Down

0 comments on commit 35f8dfa

Please sign in to comment.