From 5508787c248b99d986878e05e34646e48c1ed844 Mon Sep 17 00:00:00 2001 From: Cliff Hill Date: Thu, 11 Apr 2024 09:04:46 -0400 Subject: [PATCH 1/2] If the templates.json file changes, update it. Signed-off-by: Cliff Hill --- .github/workflows/deploy.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 049c49b36..104fa1521 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -79,6 +79,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-staging --command "flask command update-templates" + - name: Check for changes to egress config id: changed-egress-config uses: tj-actions/changed-files@v41 From d7b23832b8e88aef35d601aa0b2ee4e33a8b68ac Mon Sep 17 00:00:00 2001 From: Cliff Hill Date: Thu, 11 Apr 2024 09:25:00 -0400 Subject: [PATCH 2/2] Making minor change to templates.json. Signed-off-by: Cliff Hill --- app/config_files/templates.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/config_files/templates.json b/app/config_files/templates.json index ebc379755..a37bebaf0 100644 --- a/app/config_files/templates.json +++ b/app/config_files/templates.json @@ -34,7 +34,7 @@ "name": "Notify SMS verify code", "type": "sms", "subject": "", - "content": ["((verify_code)) is your Notify.gov authentication code"] + "content": ["((verify_code)) is your Notify.gov authentication code."] }, { "id": "474e9242-823b-4f99-813d-ed392e7f1201",