Skip to content

Commit d4abbff

Browse files
fix: hopefully uses token properly this time
1 parent ad9774b commit d4abbff

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/release.yaml

+4-3
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222

2323
- name: Configure git to use the token
2424
run: |
25-
git remote set-url origin https://x-access-token:${{ steps.generate-github-token.outputs.token }}@github.com/${{ github.repository }}.git
25+
git remote set-url origin https://${{ steps.generate-github-token.outputs.token }}@github.com/${{ github.repository }}.git
2626
2727
- name: Bump version in plugin.yaml
2828
run: |
@@ -33,8 +33,9 @@ jobs:
3333
git add plugin.yaml
3434
git commit -m "Bump version to $VERSION"
3535
git tag -d $VERSION
36+
git push --delete origin $VERSION
3637
git tag $VERSION
37-
git push origin HEAD:main
38+
git push origin HEAD:main --tags
3839
env:
3940
GH_TOKEN: '${{ steps.generate-github-token.outputs.token }}'
4041

@@ -57,4 +58,4 @@ jobs:
5758
GH_TOKEN: '${{ steps.generate-github-token.outputs.token }}'
5859

5960
- name: Push Docker image
60-
run: docker push ghcr.io/${{ github.repository }}/yamldifftool:${{ github.ref }}
61+
run: docker push ghcr.io/${{ github.repository }}/yamldifftool:${{ github.ref }}

0 commit comments

Comments
 (0)