Skip to content

Commit

Permalink
remove gh token
Browse files Browse the repository at this point in the history
  • Loading branch information
danadoherty639 committed Sep 10, 2024
1 parent 257bf6c commit 2539f09
Showing 1 changed file with 9 additions and 13 deletions.
22 changes: 9 additions & 13 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

jobs:

spec:
strategy:
fail-fast: false
Expand Down Expand Up @@ -62,16 +61,13 @@ jobs:

rerun:
needs: "acceptance"
# (2) continue ONLY IF "acceptance" fails
runs-on: ubuntu-latest
if: always() && needs.acceptance.result == 'failure'

# (4) "use" the custom action to retrigger the failed "acceptance job" above
# NOTE: pass the SOURCE_GITHUB_TOKEN to the custom action because (a) it must have
# this to trigger the reusable workflow that restarts the failed job; and
# (b) custom actions do not have access to the calling workflow's secrets
name: "rerun"
uses: "puppetlabs/cat-github-actions/.github/workflows/workflow-restarter.yml@cat_1820"
secrets: inherit
with:
repo: ${{ github.repository }}
run_id: ${{ github.run_id }}
steps:
- name: "rerun"
uses: "puppetlabs/cat-github-actions/.github/workflows/workflow-restarter.yml@cat_1820"
with:
repo: ${{ github.repository }}
run_id: ${{ github.run_id }}
env:
SOURCE_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 2539f09

Please sign in to comment.