-
-
Notifications
You must be signed in to change notification settings - Fork 435
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
Actions not triggering even with Custom App #2461
Comments
As you suggested I have set the following permissions on my Github App:
But I'm wondering if under Repository, do I also need to set values for Actions and/or Checks and/or Commit statuses?, ref: |
It looks like the permissions are correct on the app. Is the app installed on the repository where the workflow is running? Please could you show me a larger screenshot of the PR in GitHub so I can see other details, or a link to it if it's public. |
Hi @peter-evans Yes, the app is installed and runs in the action. |
Ah, I see the problem. The pull request workflow is not triggering because the branches you specified are not the target of the PR. It's the target branch, not the PR branch that you need to specify here: on:
pull_request:
branches:
- - devel
- - release
+ - main |
Ah okay, let me give this a go and if all's good I'll close this issue, thanks. |
@peter-evans thunderbirds are go ... thanks for your time and prompt resolution. |
I'm ashamed to admit that I just ran into the same issue. Would you be willing to accept a doc change to warn future users about this pitfall? |
I'm really not sure where that would go in the docs. It's more of a general GitHub Actions usage issue, not really anything specific to this action. So I'll keep an eye out, and if lots of users encounter this then I might consider adding something to the docs. |
Hi @peter-evans,
I'm aware of the original issue tracking the problem I'm having, and I've read your very good corresponding documentation. I've gone ahead and created a Github App and used it to provide a token ... however, I still can't seem to get actions to trigger.
My flow is as follows:
The PR gets created with automerge enabled as expected.
The mergeable check also runs as expected ... but the build_and_test never kicks off.
I feel I've probably just missed something small and was hoping someone could just cast their eye over my config.
My config
Automerge PR config
build_and_test config
Sorry for the inconvenience, hopefully it's something small I've overlooked.
Thank you
The text was updated successfully, but these errors were encountered: