-
-
Notifications
You must be signed in to change notification settings - Fork 53
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
How can I trigger it on the branch of the PR? #100
Comments
It's awkward to do this with I recommend switching your workflow to I recommend looking at the demo to see how to setup your command workflow. The |
Just to back up a bit, how did you resolve your issue to get this working. Did you follow my recommendation? Or you found another way? To answer your second question, I think it's possible to have a check show up under the PR for the slash command but I've not attempted it myself yet. See this conversation for some sample code. |
I am having what I guess you can call a similar issue. I have a workflow file named
I then have a
What am I missing here? |
@peter-evans Oh, in reading the documentation a bit closer, it appears that repository dispatch will only execute workflows from the default branch (master in my case), but I'm currently working on these in a PR. Do I need to merge the above into master first before my slash commands will work? |
Disregard the noise here, that WAS indeed my problem, once on master, all runs well. Thank you! |
Hi,
I'm trying to implement a custom workflow which runs on the branch of the PR where the command was triggered.
My trigger looks like this:
If I write
/test
in my PR it'll trigger the dispatcher and also the action which listens on the Event but it will alway use the main branch. Is there a way to use the PR branch? As you can see I tried using theref
argument but thats not recognized.My custom action to be triggered looks like this:
I verfied that the commit hash was wrong in the GitHub UI:
This commit is from the main branch and not from my PR:
Expected behaviour would be, that it checks out the branch which is associated with the Pull Request where I typed the command. Is this even possible?
The text was updated successfully, but these errors were encountered: