Help
cancel
Showing results for 
Search instead for 
Did you mean: 
Copilot Lvl 2
Message 1 of 3

GitHub Actions Not Run on PR Generated by GitHub Actions

Solved! Go to Solution.

I've found a dozen or more posts talking about GitHub Actions not running on forks or other kinds of PRs. That's not my problem. 

 

TL;DR: PR created by github-actions bot does not trigger PR workflows. PR created by a human does trigger PR workflows.

 

1) I have an auto-update workflow: https://github.com/cloudposse/packages/tree/master/.github/workflows which updates the packages for a repository

2) It creates a new PR if there were any changes (in a local branch)

3) It works and creates a PR like this one: https://github.com/cloudposse/packages/pull/263

4) But the workflows for labeling the PR and auto-assigning the PR are not run

 

Should this be this possible? =)

 

Thanks!

2 Replies
Solution
Copilot Lvl 3
Message 2 of 3

Re: GitHub Actions Not Run on PR Generated by GitHub Actions

Looks like you are using the create-pull-request action I created. If you check the README there is a note about this.

 

Note: If you want pull requests created by this action to trigger an on: pull_request workflow then you must use a Personal Access Token instead of the default GITHUB_TOKEN. See this issue for further details.

Copilot Lvl 2
Message 3 of 3

Re: GitHub Actions Not Run on PR Generated by GitHub Actions

Thanks, Peter! Yes, using your action (forked for security). I missed that note. Good looking out.