Skip to content

Commit 81289a7

Browse files
committed
Adds holiday checker in front of daily production tag, including override.
1 parent 89b09b3 commit 81289a7

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

.github/workflows/daily-production-release.yml

+17
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@ name: Daily Production Release
22

33
on:
44
workflow_dispatch:
5+
inputs:
6+
override_code_freeze:
7+
type: boolean
8+
description: "Override code freeze and create production tag"
9+
default: false
510
schedule:
611
- cron: 0 16 * * 1-5
712

@@ -15,9 +20,21 @@ env:
1520
DSVA_SCHEDULE_ENABLED: true
1621

1722
jobs:
23+
holiday-checker:
24+
runs-on: ubuntu-latest
25+
outputs:
26+
is_holiday: ${{ steps.holiday-check.outputs.is_holiday }}
27+
steps:
28+
- name: Check if today is a holiday
29+
id: holiday-check
30+
uses: department-of-veterans-affairs/vsp-github-actions/holiday-checker@main
1831
create-release:
1932
name: Create Release
33+
needs: holiday-checker
2034
runs-on: ubuntu-latest
35+
# Do not run the workflow during VA holidays unless we explicitly override it.
36+
if: >
37+
(needs.holiday-checker.outputs.is_holiday == 'false' || (inputs && inputs.override_code_freeze))
2138
outputs:
2239
RELEASE_NAME: ${{ steps.export-release-name.outputs.RELEASE_NAME }}
2340

0 commit comments

Comments
 (0)