From 630bcbda952c883bd353b2e94c4b3985b2aaeae9 Mon Sep 17 00:00:00 2001 From: Dana Doherty Date: Thu, 5 Sep 2024 15:10:12 +0100 Subject: [PATCH] test --- .github/workflows/ci.yml | 25 +++++++++++-------------- 1 file changed, 11 insertions(+), 14 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4c39d5596..312463e2a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -10,6 +10,7 @@ on: workflow_dispatch: env: + SOURCE_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} jobs: @@ -65,19 +66,15 @@ jobs: # (2) continue ONLY IF "acceptance" fails if: always() && needs.acceptance.result == 'failure' runs-on: ubuntu-latest - steps: - # (3) checkout this repository in order to "see" the following custom action - # - name: Checkout repository - # uses: actions/checkout@v4 - # (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 + # (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 - - uses: "puppetlabs/cat-github-actions/.github/workflows/workflow-restarter.yml@cat_1820" - env: - SOURCE_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - repository: ${{ github.repository }} - run_id: ${{ github.run_id }} + uses: "puppetlabs/cat-github-actions/.github/workflows/workflow-restarter.yml@cat_1820" + with: + repository: ${{ github.repository }} + run_id: ${{ github.run_id }} + env: + SOURCE_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}