Skip to content

Commit

Permalink
refactor: set base ref instead of head
Browse files Browse the repository at this point in the history
  • Loading branch information
Siumauricio committed May 2, 2024
1 parent 367780c commit 13eea46
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -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' || '' }}
./docker/build.sh ${{ github.base_ref == 'canary' && 'canary' || '' }}
./docker/push.sh ${{ github.base_ref == 'canary' && 'canary' || '' }}

0 comments on commit 13eea46

Please sign in to comment.