Skip to content

Commit 2db4ba9

Browse files
author
cloud-java-bot
committed
testing pushing tag with personal token
1 parent 7f19e84 commit 2db4ba9

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/prepare-release.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,19 +47,19 @@ jobs:
4747
4848
- name: Create and push tag
4949
run: |
50-
git config --global user.email cloud-java-bot@users.noreply.github.com
51-
git config --global user.name cloud-java-bot
50+
git config user.email ${{ github.actor }}@users.noreply.github.com
51+
git config user.name ${{ github.actor }}
5252
TAG_NAME="v$(date +'%Y%m%d-%H%M%S')" # Example: v20231027-153000
5353
git tag "$TAG_NAME"
5454
git push origin "$TAG_NAME"
5555
env:
56-
GITHUB_TOKEN: ${{ secrets.CLOUD_JAVA_BOT_GITHUB_TOKEN }} # Use GitHub's built-in token
56+
GITHUB_TOKEN: ${{ secrets.JIB_RELEASE_SECRET }} # Use GitHub's built-in token
5757

5858
- name: Run Gradle release
5959
run: |
6060
git checkout -b ${{ github.event.inputs.project }}-release-v${{ github.event.inputs.release_version }}
61-
git config --global user.email cloud-java-bot@users.noreply.github.com
62-
git config --global user.name cloud-java-bot
61+
git config user.email ${{ github.actor }}@users.noreply.github.com
62+
git config user.name ${{ github.actor }}
6363
6464
PROJECT=$( case ${{ github.event.inputs.project }} in
6565
extension-common) echo jib-plugins-extension-common ;;
@@ -74,7 +74,7 @@ jobs:
7474
-Prelease.useAutomaticVersion=true \
7575
-Prelease.releaseVersion=${{ github.event.inputs.release_version }}
7676
env:
77-
GITHUB_TOKEN: ${{ secrets.CLOUD_JAVA_BOT_GITHUB_TOKEN }}
77+
GITHUB_TOKEN: ${{ secrets.JIB_RELEASE_SECRET }}
7878

7979
- name: Create pull request
8080
uses: repo-sync/[email protected]

0 commit comments

Comments
 (0)