mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-21 16:01:15 -05:00
Making template update steps for demo and prod.
Signed-off-by: Cliff Hill <Clifford.hill@gsa.gov>
This commit is contained in:
10
.github/workflows/deploy-demo.yml
vendored
10
.github/workflows/deploy-demo.yml
vendored
@@ -74,6 +74,16 @@ jobs:
|
||||
--var NOTIFY_E2E_TEST_PASSWORD="$NOTIFY_E2E_TEST_PASSWORD"
|
||||
--var LOGIN_DOT_GOV_REGISTRATION_URL="$LOGIN_DOT_GOV_REGISTRATION_URL"
|
||||
|
||||
- name: Check for changes to templates.json
|
||||
id: changed-templates
|
||||
uses: tj-actions/changed-files@v41
|
||||
with:
|
||||
files: |
|
||||
app/config_files/templates.json
|
||||
- name: Update templates
|
||||
if: steps.changed-templates.outputs.any_changed == 'true'
|
||||
run: cf run-task notify-api-demo --command "flask command update-templates"
|
||||
|
||||
- name: Check for changes to egress config
|
||||
id: changed-egress-config
|
||||
uses: tj-actions/changed-files@v41
|
||||
|
||||
10
.github/workflows/deploy-prod.yml
vendored
10
.github/workflows/deploy-prod.yml
vendored
@@ -78,6 +78,16 @@ jobs:
|
||||
--var NOTIFY_E2E_TEST_PASSWORD="$NOTIFY_E2E_TEST_PASSWORD"
|
||||
--var LOGIN_DOT_GOV_REGISTRATION_URL="$LOGIN_DOT_GOV_REGISTRATION_URL"
|
||||
|
||||
- name: Check for changes to templates.json
|
||||
id: changed-templates
|
||||
uses: tj-actions/changed-files@v41
|
||||
with:
|
||||
files: |
|
||||
app/config_files/templates.json
|
||||
- name: Update templates
|
||||
if: steps.changed-templates.outputs.any_changed == 'true'
|
||||
run: cf run-task notify-api-production --command "flask command update-templates"
|
||||
|
||||
- name: Check for changes to egress config
|
||||
id: changed-egress-config
|
||||
uses: tj-actions/changed-files@v41
|
||||
|
||||
Reference in New Issue
Block a user