From 544f2e4c22633305a82b3c9adeec1d5f516cdae1 Mon Sep 17 00:00:00 2001 From: Nick Liffen Date: Tue, 2 Jan 2024 14:58:31 +0000 Subject: [PATCH] Update deploy.yaml --- .github/workflows/deploy.yaml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index 3f4804b..85ec0a2 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -47,5 +47,10 @@ jobs: npm cache clean --force npm install npm run build + - name: Extract branch name + id: extract_branch + shell: bash + run: | + echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_OUTPUT - run: sam build --use-container - - run: sam deploy --debug --no-confirm-changeset --no-fail-on-empty-changeset --stack-name codeScanning --capabilities CAPABILITY_IAM --region ${{ env.REGION }} --resolve-s3 + - run: sam deploy --debug --no-confirm-changeset --no-fail-on-empty-changeset --stack-name codeScanning-${{ steps.extract_branch.outputs.branch }} --capabilities CAPABILITY_IAM --region ${{ env.REGION }} --resolve-s3