Replies: 1 comment 6 replies
-
When the Action fails to trigger another workflow, are the commits going to the right branch? - uses: stefanzweifel/git-auto-commit-action@v5
with:
branch: ${{ github.event.pull_request.head.ref }} Or are you working with forks? Do those rogue commits go the fork-repo? |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
My issue is two fold.
I'm checking out the repo with a personal token, so that I can push back the commit and trigger new workflow runs. Like so
This works correctly, and when this action pushes new commit a new workflow runs and because of the concurrency settings Github Actions cancels the current workflow. All good.
But the above snippet results in a detached head state. This later causes some issues. So I modified the script like so:
so that it'll checkout the branch correctly. No more detached head states.
But this brings out another issue. When I check out the repo like this, a new commit with this action does not trigger a new workflow run 🤯 But also it seems random, because in some cases it did trigger a new run 🤷🏽
Did anybody have this kind of issue before? I'm not sure where the problem is though. This action or
actions/checkout
I also tried:ref: ${{ github.ref }}
ref: ${{ github.head_ref }}
still same issue.
Beta Was this translation helpful? Give feedback.
All reactions