Skip to content

Commit fbbeafa

Browse files
committed
ci(setup-labels): fix running on every push.
This workflow only needs to run once (ideally) to setup the labels. Currently it runs on every push. Fixed by changing it to run only on this specific file `path`, which will run when first committing the file, and on subsequent modifications of the file. Also added a manual way via `workflow_dispatch` event, so clicking the "Run workflow" button in the GitHub Actions tab will run the workflow.
1 parent 3ac9569 commit fbbeafa

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/setup-labels.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
name: Setup Labels
22
on:
3-
create:
3+
workflow_dispatch:
44
push:
5+
paths:
6+
- ".github/workflows/setup-labels.yml"
57
permissions:
68
pull-requests: write
79
jobs:

0 commit comments

Comments
 (0)