Skip to content

Commit

Permalink
Use GITHUB_TOKEN in branch and tag creation workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
hjiawei committed Jan 3, 2025
1 parent 0c39f1a commit 520f1db
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/create-branch-on-go-version-change.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
else
git config user.name "${{ github.actor }}"
git config user.email "${{ github.actor }}@users.noreply.github.com"
git remote set-url origin https://x-access-token:${{ secrets.MARVIN_GITHUB_TOKEN }}@github.com/${{ github.repository }}.git
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git
git checkout -b "$branch_name"
git push origin "$branch_name"
echo "Created Git branch $branch_name"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/create-tag-on-version-change.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
fi
git config user.name "${{ github.actor }}"
git config user.email "${{ github.actor }}@users.noreply.github.com"
git remote set-url origin https://x-access-token:${{ secrets.MARVIN_GITHUB_TOKEN }}@github.com/${{ github.repository }}.git
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git
git tag -a "$tag_name" -m "Release $tag_name"
git push origin "$tag_name"
echo "Created Git tag $tag_name"

0 comments on commit 520f1db

Please sign in to comment.