File tree 1 file changed +10
-6
lines changed
1 file changed +10
-6
lines changed Original file line number Diff line number Diff line change 1
1
# Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/sync-labels.md
2
2
name : Sync Labels
3
3
4
- # See: https://docs.github.com/en/ actions/reference /events-that-trigger-workflows
4
+ # See: https://docs.github.com/actions/writing-workflows/choosing-when-your-workflow-runs /events-that-trigger-workflows
5
5
on :
6
6
push :
7
7
paths :
24
24
jobs :
25
25
check :
26
26
runs-on : ubuntu-latest
27
+ permissions :
28
+ contents : read
27
29
28
30
steps :
29
31
- name : Checkout repository
55
57
download :
56
58
needs : check
57
59
runs-on : ubuntu-latest
60
+ permissions : {}
58
61
59
62
strategy :
60
63
matrix :
@@ -72,20 +75,21 @@ jobs:
72
75
- name : Pass configuration files to next job via workflow artifact
73
76
uses : actions/upload-artifact@v4
74
77
with :
75
- path : |
76
- *.yaml
77
- *.yml
78
+ path : ${{ matrix.filename }}
78
79
if-no-files-found : error
79
80
name : ${{ env.CONFIGURATIONS_ARTIFACT_PREFIX }}${{ matrix.filename }}
80
81
81
82
sync :
82
83
needs : download
83
84
runs-on : ubuntu-latest
85
+ permissions :
86
+ contents : read
87
+ issues : write
84
88
85
89
steps :
86
90
- name : Set environment variables
87
91
run : |
88
- # See: https://docs.github.com/en/ actions/reference /workflow-commands-for-github-actions#setting-an-environment-variable
92
+ # See: https://docs.github.com/actions/writing-workflows/choosing-what-your-workflow-does /workflow-commands-for-github-actions#setting-an-environment-variable
89
93
echo "MERGED_CONFIGURATION_PATH=${{ runner.temp }}/labels.yml" >> "$GITHUB_ENV"
90
94
91
95
- name : Determine whether to dry run
@@ -102,7 +106,7 @@ jobs:
102
106
run : |
103
107
# Use of this flag in the github-label-sync command will cause it to only check the validity of the
104
108
# configuration.
105
- echo "::set-output name= flag:: --dry-run"
109
+ echo "flag= --dry-run" >> $GITHUB_OUTPUT
106
110
107
111
- name : Checkout repository
108
112
uses : actions/checkout@v4
You can’t perform that action at this time.
0 commit comments