action-automerge
action-automerge copied to clipboard
Trigger push action in target branch
Is it possible to trigger push action in branch B
when merging A
into B
?
You need to use a different GitHub token to the "secrets.GITHUB_TOKEN"
Add something like this to your 'with' section: github_token: "${{ secrets.GITHUB_TOKEN_TRIGGER }}"
And this token is a PAT token.
src: https://docs.github.com/en/actions/using-workflows/triggering-a-workflow#triggering-a-workflow-from-a-workflow