Skip to content

Add a github-ci-trogger-token: option to trigger CI on create-pull-request and push-to-pull-request-branch #17800

@dsyme

Description

@dsyme

When generated actions use GITHUB_TOKEN in Actions, events do not trigger. This is generally wise to prevent event cascades but is particularly painful for create-pull-request and push-to-pull-request-branch as CI events don't trigger. This is mentioned in the FAQ.

So we want to add a new token option to ``create-pull-requestandpush-to-pull-request-branch`

safe-outputs:
    create-pull-request:
        github-ci-trigger-token: ${{ secrets.SOME_TOKEN }} 

Where, if present, this token is used only to push an empty extra commit to the pull request using auth with that token (usually a user token) in order to trigger events for CI to happen

If GH_AW_CI_TRIGGER_TOKEN is set then CI trigger commit push happens implicitly

If github-ci-trigger-token: is present then that explicit token is used.

If github-ci-trigger-token: app is used then app auth is used.

Update all docs and FAQ

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions