Skip to content

Commit 57b5cad

Browse files
committed
build: Run update-container-tags on pull_request
Change-Id: I5a25999b21decf5c8b6bb9fea9da07603b07ef8a
1 parent e09ddd9 commit 57b5cad

File tree

1 file changed

+2
-20
lines changed

1 file changed

+2
-20
lines changed

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

Lines changed: 2 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -3,33 +3,16 @@
33
name: update container tags
44

55
'on':
6-
pull_request_target:
6+
pull_request:
77

88
jobs:
99
update-container-tags:
1010
runs-on: ubuntu-latest
11-
env:
12-
GITHUB_REF: ${{ github.head_ref }}
1311
steps:
1412
- uses: actions/checkout@v2
1513
with:
16-
token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
1714
repository: ${{ github.event.pull_request.head.repo.full_name }}
18-
19-
- name: git fetch
20-
run: |
21-
git fetch
22-
- name: git checkout
23-
run: |
24-
git checkout "$GITHUB_REF"
25-
26-
# compare to upstream main branch
27-
- name: git add remote
28-
run: |
29-
git remote add quarry https://github.com/toolforge/quarry.git
30-
- name: git remote update
31-
run: |
32-
git remote update
15+
ref: ${{ github.event.pull_request.head.ref }}
3316

3417
- name: update values.yaml
3518
run: |
@@ -42,5 +25,4 @@ jobs:
4225
add: 'helm-quarry/values.yaml'
4326
author_name: Github Action
4427
author_email: auto@github.com
45-
branch: ${{ env.GITHUB_REF }}
4628
message: 'auto update of tag'

0 commit comments

Comments
 (0)