Skip to content

Commit 839bea7

Browse files
Specifying use of ref main
Was getting error message "Failed to execute goal org.apache.maven.plugins:maven-release-plugin:2.5.3:prepare (default-cli) on project refactor-first: An error is occurred in the checkin process: Exception while executing SCM command. Detecting the current branch failed: fatal: ref HEAD is not a symbolic ref". Trying solution suggested in https://stackoverflow.com/a/62713096/346247 by specifying ref
1 parent cc5528d commit 839bea7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/maven-publish.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ jobs:
1414
steps:
1515
- name: Check out Git repository
1616
uses: actions/checkout@v2
17+
with:
18+
ref: main
1719

1820
- name: Set up JDK 1.8
1921
uses: actions/setup-java@v1

0 commit comments

Comments
 (0)