Skip to content

Commit 5b4e365

Browse files
authored
Update update-container-tags.yaml
1 parent b3be2da commit 5b4e365

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/update-container-tags.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ name: update container tags
88
jobs:
99
update-container-tags:
1010
runs-on: ubuntu-latest
11+
env:
12+
GITHUB_REF: ${{ github.head_ref }}
1113
steps:
1214
- uses: actions/checkout@v2
1315
with:
@@ -19,7 +21,7 @@ jobs:
1921
git fetch
2022
- name: git checkout
2123
run: |
22-
git checkout ${{ github.head_ref }}
24+
git checkout "$GITHUB_REF"
2325
2426
# compare to upstream main branch
2527
- name: git add remote
@@ -40,6 +42,6 @@ jobs:
4042
add: 'helm-quarry/values.yaml'
4143
author_name: Github Action
4244
author_email: [email protected]
43-
branch: ${{ github.head_ref }}
45+
branch: ${{ env.GITHUB_REF }}
4446
message: 'auto update of ${{ inputs.imagename }} tag'
4547
pull: --rebase --autostash

0 commit comments

Comments
 (0)