Skip to content

Commit

Permalink
try using secrets.github_token
Browse files Browse the repository at this point in the history
  • Loading branch information
gtwang01 committed Aug 8, 2024
1 parent 05ef7be commit 550b796
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -267,12 +267,12 @@ jobs:
- name: Start rerun workflow
env:
GH_REPO: ${{ github.repository }}
GH_TOKEN: ${{ github.token }}
GH_TOKEN: ${{ secrets.github_token }}
GH_DEBUG: api
run: |
gh workflow run retry_build.yml \
--ref ${{ github.ref_name }} \
-F run_id=${{ github.run_id }}
- name: Setup tmate session # delete this after
if: failure()
uses: mxschmitt/action-tmate@v3
# - name: Setup tmate session # delete this after
# if: failure()
# uses: mxschmitt/action-tmate@v3
1 change: 1 addition & 0 deletions .github/workflows/retry_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
required: true
jobs:
rerun-on-failure:
permissions: write-all
runs-on: ubuntu-latest
steps:
- name: rerun ${{ inputs.run_id }}
Expand Down

0 comments on commit 550b796

Please sign in to comment.