There was an error while loading. Please reload this page.
1 parent e22439f commit 563ed6aCopy full SHA for 563ed6a
1 file changed
.github/workflows/build-push.yml
@@ -14,6 +14,8 @@ jobs:
14
steps:
15
- name: Checkout
16
uses: actions/checkout@v5
17
+ with:
18
+ ref: ${{ github.event.workflow_run.head_sha }}
19
20
- name: Log in to container registry
21
uses: docker/login-action@v3
@@ -25,8 +27,8 @@ jobs:
25
27
- name: Determine image tag
26
28
id: tag
29
run: |
- REF="${{ github.ref }}"
- if [ "$REF" = "refs/heads/main" ]; then
30
+ BRANCH="${{ github.event.workflow_run.head_branch }}"
31
+ if [ "$BRANCH" = "main" ]; then
32
echo "env_tag=latest" >> $GITHUB_OUTPUT
33
else
34
echo "env_tag=test" >> $GITHUB_OUTPUT
0 commit comments