From 623619035b591411648d84ffabe3ec4555b0f7fb Mon Sep 17 00:00:00 2001 From: Tim Cosgrove Date: Wed, 8 Jan 2025 09:01:49 -0800 Subject: [PATCH] Adds holiday checker in front of daily production tag, including override. (#2400) --- .github/workflows/daily-production-release.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/.github/workflows/daily-production-release.yml b/.github/workflows/daily-production-release.yml index 49cfb57095..2d029c5ac0 100644 --- a/.github/workflows/daily-production-release.yml +++ b/.github/workflows/daily-production-release.yml @@ -2,6 +2,11 @@ name: Daily Production Release on: workflow_dispatch: + inputs: + override_code_freeze: + type: boolean + description: "Override code freeze and create production tag" + default: false schedule: - cron: 0 16 * * 1-5 @@ -15,9 +20,21 @@ env: DSVA_SCHEDULE_ENABLED: true jobs: + holiday-checker: + runs-on: ubuntu-latest + outputs: + is_holiday: ${{ steps.holiday-check.outputs.is_holiday }} + steps: + - name: Check if today is a holiday + id: holiday-check + uses: department-of-veterans-affairs/vsp-github-actions/holiday-checker@main create-release: name: Create Release + needs: holiday-checker runs-on: ubuntu-latest + # Do not run the workflow during VA holidays unless we explicitly override it. + if: > + (needs.holiday-checker.outputs.is_holiday == 'false' || (inputs && inputs.override_code_freeze)) outputs: RELEASE_NAME: ${{ steps.export-release-name.outputs.RELEASE_NAME }}