Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds holiday checker in front of daily production tag, including override. #2400

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading