Skip to content

Commit

Permalink
Adds holiday checker in front of daily production tag, including over…
Browse files Browse the repository at this point in the history
…ride. (#2400)
  • Loading branch information
timcosgrove authored Jan 8, 2025
1 parent 5f3b240 commit 6236190
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/daily-production-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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 }}

Expand Down

0 comments on commit 6236190

Please sign in to comment.