From 2539f09b182b5a25224459b539a062e2be729cee Mon Sep 17 00:00:00 2001 From: Dana Doherty Date: Tue, 10 Sep 2024 11:04:32 +0100 Subject: [PATCH] remove gh token --- .github/workflows/ci.yml | 22 +++++++++------------- 1 file changed, 9 insertions(+), 13 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b02602ee9..ba7961613 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,7 +14,6 @@ env: CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} jobs: - spec: strategy: fail-fast: false @@ -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 }} \ No newline at end of file