Skip to content

Commit

Permalink
chore: more workflow fixes
Browse files Browse the repository at this point in the history
We need to explicitly tell workflow-roadmap to trigger when one of the
other workflows completes.
  • Loading branch information
alecthomas committed Feb 11, 2024
1 parent 28359eb commit 9e4f5d9
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/workflow-assigned.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
name: Remove workflow labels once an issue is assigned
# This name needs to be kept in sync with the workflow_run event in workflow-roadmap.yml
name: Clear workflow labels once an issue is assigned
on:
issues:
types:
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/workflow-roadmap.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,14 @@ on:
- assigned
- labeled
workflow_dispatch:
# We need to separately trigger when one of the other workflows completes
# because GHA won't trigger another workflow based only on changes from
# another workflow, such as updating labels.
workflow_run:
workflows:
- Add triage label to new issues
- Clear workflow labels once an issue is assigned
types: [completed]
jobs:
label_issues:
runs-on: ubuntu-latest
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/workflow-triage.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
name: Label issues
# This name needs to be kept in sync with the workflow_run event in workflow-roadmap.yml
name: Add triage label to new issues
on:
issues:
types:
Expand Down

0 comments on commit 9e4f5d9

Please sign in to comment.