action-automerge icon indicating copy to clipboard operation
action-automerge copied to clipboard

Trigger push action in target branch

Open aeifn opened this issue 4 years ago • 1 comments

Is it possible to trigger push action in branch B when merging A into B?

aeifn avatar Dec 14 '20 19:12 aeifn

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

richard-scott avatar Apr 03 '23 20:04 richard-scott