From 9f52c17b10e8819ade23c740b89086712a028c12 Mon Sep 17 00:00:00 2001 From: Ho Man Chan Date: Wed, 20 Mar 2024 08:03:02 -0400 Subject: [PATCH] chore: update bedrock trigger with environment variables (#34) * chore: update bedrock trigger with environment variables * fix: update trigger bedrok update github action job environment variable to use sqs to sns. --- .github/workflows/autoupdate.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/autoupdate.yml b/.github/workflows/autoupdate.yml index 54fb77e..1c9be41 100644 --- a/.github/workflows/autoupdate.yml +++ b/.github/workflows/autoupdate.yml @@ -11,7 +11,10 @@ jobs: steps: - name: Trigger Bedrock Updates uses: pressbooks/composer-autoupdate-bedrock@main - with: - triggered-by: ${{ github.repository }} - token: ${{ secrets.PAT_COMPOSER_UPDATE }} - branch: ${{ github.ref }} + env: + AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} + AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} + AWS_SNS_ARN_DEV: ${{ secrets.AWS_SNS_ARN_DEV }} + AWS_SNS_ARN_STAGING: ${{ secrets.AWS_SNS_ARN_STAGING }} + INPUT_TRIGGERED_BY: ${{ github.repository }} + INPUT_BRANCH: ${{ github.ref }}