From 6da78cbfa77f6aa3d198d54a7da9cbf4e9ae5a28 Mon Sep 17 00:00:00 2001 From: Jean Cochrane Date: Fri, 1 Dec 2023 13:32:27 -0600 Subject: [PATCH] Set SNS topic env var in `build-and-run-model` workflow container (#64) * Test jeancochrane/support-container-env-vars-in-batch-jobs branch of ccao-data/actions * Test removing container-env-vars to confirm that the default works * Add AWS_SNS_ARN_MODEL_STATUS env var to build-and-run-model container * Since secrets can't be used in workflow inputs, try passing them as workflow secrets * Set CONTAINER_ENV_VARS to AWS_SNS_ARN_MODEL_STATUS in build-and-run-model workflow * Switch back to main branch ref in build-and-run-model.yaml --- .github/workflows/build-and-run-model.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/build-and-run-model.yaml b/.github/workflows/build-and-run-model.yaml index 86fee494..e0130246 100644 --- a/.github/workflows/build-and-run-model.yaml +++ b/.github/workflows/build-and-run-model.yaml @@ -35,3 +35,5 @@ jobs: secrets: AWS_IAM_ROLE_TO_ASSUME_ARN: ${{ secrets.AWS_IAM_ROLE_TO_ASSUME_ARN }} AWS_ACCOUNT_ID: ${{ secrets.AWS_ACCOUNT_ID }} + CONTAINER_ENV_VARS: | + AWS_SNS_ARN_MODEL_STATUS=${{ secrets.AWS_SNS_ARN_MODEL_STATUS }}