From 329b053cf57a30a054aa88ecd1e90d7e5647239d Mon Sep 17 00:00:00 2001 From: Chris Evich Date: Thu, 10 Nov 2022 16:10:10 -0500 Subject: [PATCH] GHA: Fix undefined secret env. var. Because in github-actions, setting a secret variable isn't enough. You ALSO have to set it again in your YAML. I guess it's assumed in the name of "security" that the person with access to secrets, might not also have access to update YAML. Crazy! Also, while I'm at it. Bump up the execution schedule WRT the check_cirrus_cron workflow - this will give re-run jobs more time to complete. Signed-off-by: Chris Evich --- .github/workflows/rerun_cirrus_cron.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/rerun_cirrus_cron.yml b/.github/workflows/rerun_cirrus_cron.yml index 7973e418ec..5a0b0f6921 100644 --- a/.github/workflows/rerun_cirrus_cron.yml +++ b/.github/workflows/rerun_cirrus_cron.yml @@ -10,7 +10,7 @@ on: schedule: # N/B: This should fire about an hour prior to check_cirrus_cron # so the re-runs have a chance to complete. - - cron: '59 22 * * 1-5' + - cron: '05 22 * * 1-5' # Debug: Allow triggering job manually in github-actions WebUI workflow_dispatch: {} @@ -42,6 +42,8 @@ jobs: - if: steps.cron.outputs.failures > 0 shell: bash + env: + SECRET_CIRRUS_API_KEY: ${{ secrets.SECRET_CIRRUS_API_KEY }} run: './.github/actions/check_cirrus_cron/rerun_failed_tasks.sh' - uses: actions/upload-artifact@82c141cc518b40d92cc801eee768e7aafc9c2fa2 # v2