Skip to content

Commit 7b3e7d8

Browse files
Heiko KieselIlyesbdlala
authored andcommitted
Move token to checkout step
Signed-off-by: Heiko Kiesel <heiko.kiesel@iteratec.com>
1 parent 98577a9 commit 7b3e7d8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ jobs:
4040
uses: actions/checkout@v3
4141
with:
4242
fetch-depth: 0 # required by previous_tag
43+
ref: ${{ github.head_ref }}
44+
token: ${{ secrets.SCB_BOT_USER_TOKEN }}
4345

4446
- name: Set up JDK 17
4547
uses: actions/setup-java@v3
@@ -96,10 +98,8 @@ jobs:
9698
sed -i -e "s@\(<version>\)\([0-9].[0-9].[0-9]\(-[A-z0-9]*\)*\)\(</version>\)@\1${{ steps.extract-version.outputs.MVN_VERSION }}\4@g" README.md
9799
sed -i -e "s@\(version: '\)\([0-9].[0-9].[0-9]\(-[A-z0-9]*\)*\)\('\)@\1${{ steps.extract-version.outputs.MVN_VERSION }}\4@g" README.md
98100
git add README.md
99-
git commit -S -m "Update version in README"
101+
git commit -Ss -m "Update version in README"
100102
git push
101-
env:
102-
GITHUB_TOKEN: ${{ secrets.SCB_BOT_USER_TOKEN }}
103103
104104
# Required for creation of GitHub release
105105
- name: "Get previous tag"

0 commit comments

Comments
 (0)