Open kevinkace opened 4 years ago
I'm having the same issue, and would be interested in a fix as well!
Same issue here
Your branch is ahead of 'origin/dm-action' by 1 commit.
I believe It seems to me that the information presented is not current. You would have to do "git fetch" before "git status" to get current information.
Git pull solved it to me.
I had the same issue today and in my case it was because I was missing the branch
portion (E.g. branch: ${{ github.ref }}
).
After adding it to my workflow file the issue was resolved:
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.ref }}
I'm curious about whether changing branch: 'origin HEAD'
to branch: ${{ github.ref }}
will do the trick in your case. I imagine it should, since it looks like you're trying to push to the same branch that triggered the action and github.ref will resolve to the current branch reference.
Same issue. Is this solved?
I have an action to build some frontend files (webpack/gulp/less), and commit them back to the repo.
The push is failing:
There is a
git status
command just prior to trying the push which shows the repo is up-to-date:My Build yaml: