Skip to content

Commit 11625b0

Browse files
csviriadam-sandor
authored andcommitted
try to fix release commit error
1 parent 6a280ba commit 11625b0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@ jobs:
2929
run: mvn -q build-helper:parse-version versions:set -DnewVersion=\${parsedVersion.majorVersion}.\${parsedVersion.minorVersion}.\${parsedVersion.nextIncrementalVersion}-SNAPSHOT versions:commit
3030
- name: Commit files
3131
run: |
32-
git checkout -f master
32+
git config remote.origin.fetch '+refs/heads/*:refs/remotes/origin/*'
33+
git fetch --all
34+
git checkout master
3335
git config --local user.email "[email protected]"
3436
git config --local user.name "GitHub Action"
3537
git commit -m "Set new SNAPSHOT version into pom files." -a

0 commit comments

Comments
 (0)