File tree Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ name : sync-labels
3
+
4
+ on :
5
+ push :
6
+ paths :
7
+ - ' .github/labels.yml'
8
+ - ' .github/workflows/sync-labels.yml'
9
+
10
+ permissions :
11
+ contents : read
12
+
13
+ jobs :
14
+ labeler :
15
+ permissions :
16
+ # actions/checkout needs this to fetch code
17
+ contents : read
18
+ # crazy-max/ghaction-github-labeler needs this to manage repository labels
19
+ issues : write
20
+ runs-on : ubuntu-latest
21
+ steps :
22
+ - uses : actions/checkout@v3
23
+ - name : Sync repository labels
24
+ if : success()
25
+ uses : crazy-max/ghaction-github-labeler@v4
26
+ with :
27
+ # This is a hideous ternary equivalent so we only do a dry run unless
28
+ # this workflow is triggered by the develop branch.
29
+ dry-run : ${{ github.ref_name == 'develop' && 'false' || 'true' }}
You can’t perform that action at this time.
0 commit comments