-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug: Branch name incorrect on pull_request evented actions #13
Comments
I hit this issue today attempting to setup a trigger on specific PR activity. |
Also experiencing this issue. |
Experiencing this issue on 1.0.4. Any update on this? The branch in circleci says 'refs/pull/####/merge' instead of the actual source branch for the PR and then the SHA isn't valid and it throws this error:
|
hi I come across this action library recently and noticed that #16 adds support for
I would suggest adding a
in this way it can support way more use cases 😄 |
This is also happening on |
Hasn't been resolved? |
I resolved this by adding a
|
Is there an existing issue for this?
Current behavior
Triggering branch: refs/pull/4781/merge
Minimum reproduction code
https://github.com/CircleCI-Public/trigger-circleci-pipeline-action
Steps to reproduce
No response
Expected behavior
Expect the branch name to be "correct". It must be obtained through different sources based on the event type that triggers the action:
https://www.techiediaries.com/get-current-branch-name-github-actions-github_ref-bash/
Further, sometimes it can be fetched from
github.event.ref
(for instance in the case of thedelete
event).GitHub Action Version
1.0.4
Other
No response
The text was updated successfully, but these errors were encountered: