File tree 1 file changed +10
-4
lines changed
1 file changed +10
-4
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/using-workflows /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 :
@@ -81,11 +84,14 @@ jobs:
81
84
sync :
82
85
needs : download
83
86
runs-on : ubuntu-latest
87
+ permissions :
88
+ contents : read
89
+ issues : write
84
90
85
91
steps :
86
92
- name : Set environment variables
87
93
run : |
88
- # See: https://docs.github.com/en/ actions/reference /workflow-commands-for-github-actions#setting-an-environment-variable
94
+ # See: https://docs.github.com/actions/using-workflows /workflow-commands-for-github-actions#setting-an-environment-variable
89
95
echo "MERGED_CONFIGURATION_PATH=${{ runner.temp }}/labels.yml" >> "$GITHUB_ENV"
90
96
91
97
- name : Determine whether to dry run
@@ -102,7 +108,7 @@ jobs:
102
108
run : |
103
109
# Use of this flag in the github-label-sync command will cause it to only check the validity of the
104
110
# configuration.
105
- echo "::set-output name= flag:: --dry-run"
111
+ echo "flag= --dry-run" >> $GITHUB_OUTPUT
106
112
107
113
- name : Checkout repository
108
114
uses : actions/checkout@v3
@@ -135,4 +141,4 @@ jobs:
135
141
github-label-sync \
136
142
--labels "${{ env.MERGED_CONFIGURATION_PATH }}" \
137
143
${{ steps.dry-run.outputs.flag }} \
138
- ${{ github.repository }}
144
+ ${{ github.repository }}
You can’t perform that action at this time.
0 commit comments