Closed ASarco closed 3 years ago
The configuration I used is:
- name: Release
uses: qcastel/github-actions-maven/actions/release@master
with:
maven-project-folder: "customers/"
release-branch-name: "master"
git-release-bot-name: "release-bot"
git-release-bot-email: "release-bot@example.com"
access-token: ${{ secrets.GITHUB_ACCESS_TOKEN }}
Hello @ASarco ,
Is it by any chance a public repo? Would you be able to share the link?
No, unfortunately it is not public, it is my company's so I can't share it. But let me know if I can post some other info.
BTW, I replaced maven-project-folder with maven-local-repo-path (which I don't know if it's the same since the latter is not documented), and now I don't get the warning but the job still fails.
What I am surprise is that I can see this log: https://github.com/qcastel/github-actions-maven-release/issues/18#issuecomment-773493501
but not https://github.com/qcastel/docker-maven-release/blob/master/release.sh#L19 or https://github.com/qcastel/docker-maven-release/blob/master/release.sh#L27
I am not sure where your github action job went, there is no real bash commands in between that could crash
You can reproduce this issue all the time? meaning if you commit an empty commit, does it always died there?
Yes, it happens all the time. Now that you pointed me to the source code, yes, it's weird that we don't see anything else. I am just starting with github actions, so I still don't know much. Can it be in conflict with another action? Previously to this, I run checkout and setup-java
a yeah, don't setup that github actions first:
What this action does is preparing the default docker container that all github containers shared. For that, it installs java and setup environmetn variables. As we choose to have the maven release inside its own docker container for consistancy and not relying on github changing the base image, this cause a bit of a problem when there are environments variables that corrupt the correct JAVA_HOME for example.
Al that said, you haven't reach the point where you even run maven. Maybe github is dropping some logs when the job crashes badly?
I would suggest to try without this setup-java github actions. Instead I installed a few different version of Java that you can enable following this: https://github.com/qcastel/github-actions-maven-release#jdk-version
I guess you may have given up trying to use this github actions @ASarco :(
I will close this ticket but feel free to re-open it at any time
I was trying to test this action, but when it runs I get:
Then the job just fails with no explanation, the last message is: HEAD is now at 48e1815 Merge remote-tracking branch 'origin/master'
I don't know if it fails because of the warning (it's just a warning, so it shouldn't of for any other reason)