Skip to content

Commit ac320e1

Browse files
committed
fix auto version increment
1 parent 08991fb commit ac320e1

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/ci.yml

+5-3
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ jobs:
1818
- uses: actions/checkout@v3
1919
with:
2020
persist-credentials: false # without this, all access tokens set later on will be ignored
21+
- name: Set git config
22+
run: |
23+
git config user.name github-actions
24+
git config user.email [email protected]
2125
- name: Check if snapshot version
2226
run: |
2327
VERSION_NAME=$(./gradlew -q printVersionName | tail -n 1)
@@ -30,8 +34,6 @@ jobs:
3034
echo "Setting next snapshot version"
3135
./gradlew incrementPatchVersion --info
3236
./gradlew setSnapshotVersionSuffix --info
33-
git config user.name github-actions
34-
git config user.email [email protected]
3537
git add gradle.properties
3638
git commit -m "Setting next snapshot version [skip ci]"
37-
git push --follow-tags
39+
git push https://tschuchortdev:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git --follow-tags

0 commit comments

Comments
 (0)