From 07c5f00b2100908c049b73cd7624c4d3385496f2 Mon Sep 17 00:00:00 2001 From: Daniel Santillan Date: Mon, 25 Sep 2023 17:58:01 +0200 Subject: [PATCH] chore: trying to get correct branch name for pull request action --- .github/workflows/build_pull_request.yaml | 2 +- .github/workflows/test_deploy_cleanup.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build_pull_request.yaml b/.github/workflows/build_pull_request.yaml index 6d84a31a..6a1aac8d 100644 --- a/.github/workflows/build_pull_request.yaml +++ b/.github/workflows/build_pull_request.yaml @@ -41,7 +41,7 @@ jobs: uses: jakejarvis/s3-sync-action@v0.5.1 env: SOURCE_DIR: 'build' - DEST_DIR: 'catalog/${GITHUB_REF_NAME}' + DEST_DIR: 'catalog/${{ github.event.pull_request.head.ref }}' AWS_REGION: 'eu-central-1' AWS_S3_BUCKET: ${{ secrets.AWS_S3_BUCKET }} AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} diff --git a/.github/workflows/test_deploy_cleanup.yaml b/.github/workflows/test_deploy_cleanup.yaml index 68c105f7..f96203c4 100644 --- a/.github/workflows/test_deploy_cleanup.yaml +++ b/.github/workflows/test_deploy_cleanup.yaml @@ -22,4 +22,4 @@ jobs: # Delete the folder from the S3 bucket - name: Delete folder from S3 run: | - aws s3 rm s3://${{ secrets.AWS_S3_BUCKET }}/catalog/${GITHUB_REF_NAME} --recursive \ No newline at end of file + aws s3 rm s3://${{ secrets.AWS_S3_BUCKET }}/catalog/${{ github.event.pull_request.head.ref }} --recursive \ No newline at end of file