From 5ac832a12efc752d150fb2122e89f7439e8453a0 Mon Sep 17 00:00:00 2001 From: Tiago Garcia Date: Wed, 25 Oct 2023 18:02:37 +0200 Subject: [PATCH] Fix more issues with GHA and AWS deployment --- .github/workflows/deploy.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 8db5fc15..982d31bc 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -155,6 +155,15 @@ jobs: aws-secret-access-key: ${{ secrets.PIPELINE_USER_SECRET_ACCESS_KEY }} aws-region: ${{ vars.AWS_REGION }} + - name: Extract branch name + run: | + { + branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}} + echo "branch=${branch}" + echo "branch_upper=${branch^^}" + } >> $GITHUB_OUTPUT + id: extract_branch + - name: Login to Amazon ECR id: login-ecr uses: aws-actions/amazon-ecr-login@v1