Skip to content
This repository has been archived by the owner on May 7, 2024. It is now read-only.

After rebase is done new pull_request/push event doesn't trigger the workflow #39

Closed
jurenovic opened this issue Mar 13, 2020 · 5 comments

Comments

@jurenovic
Copy link

Hello
I tried to set this thing up but however I've put it it didn't fire the workflow after the pull request was rebased.

I have created a very simple repo demonstrating the issue. Branch master is protected and it needs to be up to date before merging. In the sample there is a master and a feature branch.

* 86bd7db (HEAD -> master, origin/master) third master
| * 4c8948b (origin/feature-1, feature-1) feature first
|/
* 001c1ee second master
* b688c44 first commit

the repo is https://github.com/jurenovic/test-rebase

Can you please help me since I would really like having rebasing feature from PR comments.

Many thanks

@fkorotkov
Copy link
Member

It's Actions limitation. See docs:

An action in a workflow run can't trigger a new workflow run. For example, if an action pushes code using the repository's GITHUB_TOKEN, a new workflow will not run even when the repository contains a workflow configured to run when push events occur.

There is also discussion on developer forum: https://github.community/t5/GitHub-Actions/Triggering-a-new-workflow-from-another-workflow/td-p/31676

@jurenovic
Copy link
Author

Thank you. I have tried it with a bot access token and it works. As a suggestion maybe add a line about this to the readme.

@sebastian-toepfer
Copy link

@jurenovic: same issue, but doesn't understand your solution. can you explain me what you mean with a bot access token, please.

@jurenovic
Copy link
Author

@sebastian-toepfer In our company we have a github user (a bot account) from times of Jenkins. So for this to work properly I have used bot user personal access token.

@sebastian-toepfer
Copy link

@jurenovic: thanks, okay we use an access-token from a normal user, but it doesn't work.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants