Workflow not running on PRs labeled by other GHA
mchelen-gov opened this issue · comments
Summary
The add-to-project
workflow is not running when a PR is labeled by another Github Action.
Reproduction steps
- Configure https://github.com/actions/add-to-project to automatically add Pull Request with label
foo
to a project - Configure a GHA such as https://github.com/actions/labeler to automatically label Pull Requests with
foo
- Open a pull request
- PR will automatically be labeled with
foo
- PR will not be added to project board
Sample config:
name: Sample config
on:
pull_request:
types:
- labeled
jobs:
add-to-project:
name: Add PR to project
runs-on: ubuntu-latest
steps:
- uses: actions/add-to-project@main
with:
project-url: https://github.com/orgs/example/projects/123/views/1
github-token: ${{ secrets.ADD_TO_PROJECT_PAT }}
labeled: foo
This turned out to be an intentional result of https://docs.github.com/en/actions/using-workflows/triggering-a-workflow#triggering-a-workflow-from-a-workflow unrelated to add-to-project
.