Skip to content

Commit 1f26e69

Browse files
committed
fixed github-action[bot] permission issue
1 parent 47493a4 commit 1f26e69

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,10 @@ jobs:
3232
run: |
3333
TAG="v1.0.${{ github.run_number }}"
3434
echo "tag=$TAG" >> $GITHUB_OUTPUT
35+
git config user.name "github-actions[bot]"
36+
git config user.email "github-actions[bot]@users.noreply.github.com"
3537
git tag $TAG
36-
git push origin $TAG
38+
git push https://${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git $TAG
3739
3840
- name: Create Release
3941
uses: softprops/action-gh-release@v1

0 commit comments

Comments
 (0)