Skip to content

Commit 0651cbc

Browse files
committed
fix for detached head release problem
1 parent c38422b commit 0651cbc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ 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
3233
git config --local user.email "action@github.com"
3334
git config --local user.name "GitHub Action"
3435
git commit -m "Set new SNAPSHOT version into pom files." -a

0 commit comments

Comments
 (0)