tungbq / devops-toolkit

🐳 Container image for an all-in-one DevOps environment with popular tools like Ansible, Terraform, kubectl, Helm, AWS CLI, Azure CLI, Git, Python and more.
Apache License 2.0
34 stars 10 forks source link

ci: Pull request created in a GitHub action does not trigger workflows with pull_request trigger #88

Closed tungbq closed 4 months ago

tungbq commented 4 months ago

Pull request created in a GitHub action does not trigger workflows with pull_request trigger See: #87

Needs to investigate - maybe related to https://github.com/orgs/community/discussions/65321 and/or https://github.com/orgs/community/discussions/57484

tungbq commented 4 months ago

When you use the repository's GITHUB_TOKEN to perform tasks, events triggered by the GITHUB_TOKEN, with the exception of workflow_dispatch and repository_dispatch, will not create a new workflow run.

If you want to run workflows from those events, you'll need to provide a PAT.

tungbq commented 4 months ago

Document for WA: https://github.com/peter-evans/create-pull-request/blob/main/docs/concepts-guidelines.md#triggering-further-workflow-runs

tungbq commented 4 months ago

It's resolved via #89 by using PAT instead Result: #90