-
Notifications
You must be signed in to change notification settings - Fork 138
Rebase command can not trigger test check workflow #65
Comments
+1 - name: Automatic Rebase
uses: cirrus-actions/rebase@1.3.1
env:
GITHUB_TOKEN: ${{ secrets.MY_GITHUB_API_TOKEN }} |
+1 |
This is a weird Actions limitation that one workflow can't trigger another one. See this community post for more details. I don't believe there is a viable workaround at the moment. On a bright side it does work with 3rdparty CIs like Travis, Circle and Cirrus. |
I tried adding on:
workflow_run:
workflows: ["Automatic Rebase"]
types:
- completed to test workflow, it is run on default branch not within context of rebased pull request. Documentation seemed promising
But article about this feature clearly states that
https://github.blog/2020-08-03-github-actions-improvements-for-fork-and-pull-request-workflows/ |
this action https://github.com/Label305/AutoRebase can auto rebase and trigger CI workflow by use a personal github token. I try to use a personal github token for cirrus-actions/rebase, but not work. |
I've worked around the issue by letting my GitHub Actions test workflow run also on pull request review events:
Running Not perfect but it works for me. Thank you for this rebase action 👍 |
I've now created a PR with that workaround description because maybe more people might find it useful. |
Do you think this will be fixed anytime soon by the GHA team? |
@walterholohan Fixed here #70 |
@jackton1 I updated the action yaml file to
where |
@walterholohan it seems Update
|
@jackton1 ive changed to the above suggestion but still no luck. The rebase completed successfully but the actions did not get triggered. Does the PAT need certain permissions? Maybe its missing something. |
@walterholohan Try again using Note for workflows that modify github actions you can enable |
Thank you, It was an issue on my end. I was trying to test this out in a PR but when I triggered a rebase by adding a |
the RP after rebase by /rebase command can not trigger test check workflow
The text was updated successfully, but these errors were encountered: