Skip to content

Commit f9bcf5d

Browse files
set up git auth in tag workflow
1 parent 6ba7516 commit f9bcf5d

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

.github/workflows/build-prod-image.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,17 @@ jobs:
1414
uses: actions/checkout@v3
1515
with:
1616
fetch-depth: 0 # Needed to fetch all tags
17+
token: ${{ secrets.GITHUB_TOKEN }}
18+
19+
- name: Set up Git
20+
run: |
21+
git config --global user.email "github-actions[bot]@users.noreply.github.com"
22+
git config --global user.name "github-actions[bot]"
1723
1824
- name: Update latest tag on Github
1925
run: |
2026
git tag -f latest
21-
git push origin latest
27+
git push origin latest -f
2228
2329
- name: Set up Docker Buildx
2430
uses: docker/setup-buildx-action@v2

0 commit comments

Comments
 (0)