From 13eea467a0512d0281a59c7621507ec987426941 Mon Sep 17 00:00:00 2001 From: Mauricio Siu <47042324+Siumauricio@users.noreply.github.com> Date: Wed, 1 May 2024 20:51:46 -0600 Subject: [PATCH] refactor: set base ref instead of head --- .github/workflows/pull-request.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index 42a8d7cd7..6b8bc2903 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -46,8 +46,8 @@ jobs: run: | chmod +x ./docker/build.sh - echo "Building Docker image for ${{ github.head_ref }}" - ./docker/build.sh ${{ github.head_ref == 'canary' && 'canary' || '' }} + echo "Building Docker image for ${{ github.base_ref }}" + ./docker/build.sh ${{ github.base_ref == 'canary' && 'canary' || '' }} build-and-push-docker-on-push: if: github.event_name == 'push' @@ -73,5 +73,5 @@ jobs: run: | chmod +x ./docker/build.sh chmod +x ./docker/push.sh - ./docker/build.sh ${{ github.ref_name == 'canary' && 'canary' || '' }} - ./docker/push.sh ${{ github.ref_name == 'canary' && 'canary' || '' }} \ No newline at end of file + ./docker/build.sh ${{ github.base_ref == 'canary' && 'canary' || '' }} + ./docker/push.sh ${{ github.base_ref == 'canary' && 'canary' || '' }} \ No newline at end of file