File tree 5 files changed +57
-4
lines changed
5 files changed +57
-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/check-markdown-task.md
2
2
name : Check Markdown
3
3
4
+ env :
5
+ # See: https://github.com/actions/setup-node/#readme
6
+ NODE_VERSION : 16.x
7
+
4
8
# See: https://docs.github.com/en/actions/reference/events-that-trigger-workflows
5
9
on :
6
10
push :
37
41
- name : Checkout repository
38
42
uses : actions/checkout@v2
39
43
44
+ - name : Setup Node.js
45
+ uses : actions/setup-node@v3
46
+ with :
47
+ node-version : ${{ env.NODE_VERSION }}
48
+
40
49
- name : Initialize markdownlint-cli problem matcher
41
50
uses : xt0rted/markdownlint-problem-matcher@v1
42
51
56
65
- name : Checkout repository
57
66
uses : actions/checkout@v2
58
67
68
+ - name : Setup Node.js
69
+ uses : actions/setup-node@v3
70
+ with :
71
+ node-version : ${{ env.NODE_VERSION }}
72
+
59
73
- name : Install Task
60
74
uses : arduino/setup-task@v1
61
75
with :
Original file line number Diff line number Diff line change 1
1
# Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/check-prettier-formatting-task.md
2
2
name : Check Prettier Formatting
3
3
4
+ env :
5
+ # See: https://github.com/actions/setup-node/#readme
6
+ NODE_VERSION : 16.x
7
+
4
8
# See: https://docs.github.com/en/free-pro-team@latest/actions/reference/events-that-trigger-workflows
5
9
on :
6
10
push :
@@ -206,6 +210,11 @@ jobs:
206
210
- name : Checkout repository
207
211
uses : actions/checkout@v2
208
212
213
+ - name : Setup Node.js
214
+ uses : actions/setup-node@v3
215
+ with :
216
+ node-version : ${{ env.NODE_VERSION }}
217
+
209
218
- name : Install Task
210
219
uses : arduino/setup-task@v1
211
220
with :
Original file line number Diff line number Diff line change 1
1
# Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/check-taskfiles.md
2
2
name : Check Taskfiles
3
3
4
+ env :
5
+ # See: https://github.com/actions/setup-node/#readme
6
+ NODE_VERSION : 16.x
7
+
4
8
# See: https://docs.github.com/en/actions/reference/events-that-trigger-workflows
5
9
on :
6
10
push :
37
41
- name : Checkout repository
38
42
uses : actions/checkout@v2
39
43
44
+ - name : Setup Node.js
45
+ uses : actions/setup-node@v3
46
+ with :
47
+ node-version : ${{ env.NODE_VERSION }}
48
+
40
49
- name : Download JSON schema for Taskfiles
41
50
id : download-schema
42
51
uses : carlosperate/download-file-action@v1
Original file line number Diff line number Diff line change 1
1
# Source: https://github.com/arduino/tooling-project-assets/blob/master/workflow-templates/check-workflows-task.md
2
2
name : Check Workflows
3
3
4
+ env :
5
+ # See: https://github.com/actions/setup-node/#readme
6
+ NODE_VERSION : 16.x
7
+
4
8
# See: https://docs.github.com/en/actions/reference/events-that-trigger-workflows
5
9
on :
6
10
push :
25
29
- name : Checkout repository
26
30
uses : actions/checkout@v2
27
31
32
+ - name : Setup Node.js
33
+ uses : actions/setup-node@v3
34
+ with :
35
+ node-version : ${{ env.NODE_VERSION }}
36
+
28
37
- name : Install Task
29
38
uses : arduino/setup-task@v1
30
39
with :
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
+ env :
5
+ # See: https://github.com/actions/setup-node/#readme
6
+ NODE_VERSION : 16.x
7
+ CONFIGURATIONS_FOLDER : .github/label-configuration-files
8
+ CONFIGURATIONS_ARTIFACT : label-configuration-files
9
+
4
10
# See: https://docs.github.com/en/actions/reference/events-that-trigger-workflows
5
11
on :
6
12
push :
17
23
workflow_dispatch :
18
24
repository_dispatch :
19
25
20
- env :
21
- CONFIGURATIONS_FOLDER : .github/label-configuration-files
22
- CONFIGURATIONS_ARTIFACT : label-configuration-files
23
-
24
26
jobs :
25
27
check :
26
28
runs-on : ubuntu-latest
29
31
- name : Checkout repository
30
32
uses : actions/checkout@v2
31
33
34
+ - name : Setup Node.js
35
+ uses : actions/setup-node@v3
36
+ with :
37
+ node-version : ${{ env.NODE_VERSION }}
38
+
32
39
- name : Download JSON schema for labels configuration file
33
40
id : download-schema
34
41
uses : carlosperate/download-file-action@v1
@@ -118,6 +125,11 @@ jobs:
118
125
with :
119
126
name : ${{ env.CONFIGURATIONS_ARTIFACT }}
120
127
128
+ - name : Setup Node.js
129
+ uses : actions/setup-node@v3
130
+ with :
131
+ node-version : ${{ env.NODE_VERSION }}
132
+
121
133
- name : Merge label configuration files
122
134
run : |
123
135
# Merge all configuration files
You can’t perform that action at this time.
0 commit comments