Skip to content

Commit b8bed6d

Browse files
committed
ci: fix checkout branch
1 parent 9c3f685 commit b8bed6d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/docker-build-push.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
- name: Checkout
2020
uses: actions/checkout@v3
2121
with:
22-
ref: ${{ github.ref }}
22+
ref: ${{ github.event.workflow_run.head_branch }}
2323

2424
- name: Bump version and push tag
2525
id: tag-version
@@ -47,7 +47,7 @@ jobs:
4747
- name: Checkout
4848
uses: actions/checkout@v3
4949
with:
50-
ref: ${{ github.ref }}
50+
ref: ${{ github.event.workflow_run.head_branch }}
5151

5252
- name: Update package.json version
5353
run: echo "`jq '.version="${{ env.TAG }}"' package.json`" > package.json

0 commit comments

Comments
 (0)