File tree 14 files changed +368
-0
lines changed
14 files changed +368
-0
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ name: Check General Formatting
3
3
4
4
# See: https://docs.github.com/actions/using-workflows/events-that-trigger-workflows
5
5
on :
6
+ create :
6
7
push :
7
8
pull_request :
8
9
schedule :
12
13
repository_dispatch :
13
14
14
15
jobs :
16
+ run-determination :
17
+ runs-on : ubuntu-latest
18
+ outputs :
19
+ result : ${{ steps.determination.outputs.result }}
20
+ steps :
21
+ - name : Determine if the rest of the workflow should run
22
+ id : determination
23
+ run : |
24
+ RELEASE_BRANCH_REGEX="refs/heads/[0-9]+.[0-9]+.x"
25
+ # The `create` event trigger doesn't support `branches` filters, so it's necessary to use Bash instead.
26
+ if [[
27
+ "${{ github.event_name }}" != "create" ||
28
+ "${{ github.ref }}" =~ $RELEASE_BRANCH_REGEX
29
+ ]]; then
30
+ # Run the other jobs.
31
+ RESULT="true"
32
+ else
33
+ # There is no need to run the other jobs.
34
+ RESULT="false"
35
+ fi
36
+
37
+ echo "result=$RESULT" >> $GITHUB_OUTPUT
38
+
15
39
check :
40
+ needs : run-determination
41
+ if : needs.run-determination.outputs.result == 'true'
16
42
runs-on : ubuntu-latest
17
43
18
44
steps :
Original file line number Diff line number Diff line change 7
7
8
8
# See: https://docs.github.com/actions/using-workflows/events-that-trigger-workflows
9
9
on :
10
+ create :
10
11
push :
11
12
paths :
12
13
- " .github/workflows/check-javascript-task.ya?ml"
@@ -32,7 +33,32 @@ permissions:
32
33
contents : read
33
34
34
35
jobs :
36
+ run-determination :
37
+ runs-on : ubuntu-latest
38
+ outputs :
39
+ result : ${{ steps.determination.outputs.result }}
40
+ steps :
41
+ - name : Determine if the rest of the workflow should run
42
+ id : determination
43
+ run : |
44
+ RELEASE_BRANCH_REGEX="refs/heads/[0-9]+.[0-9]+.x"
45
+ # The `create` event trigger doesn't support `branches` filters, so it's necessary to use Bash instead.
46
+ if [[
47
+ "${{ github.event_name }}" != "create" ||
48
+ "${{ github.ref }}" =~ $RELEASE_BRANCH_REGEX
49
+ ]]; then
50
+ # Run the other jobs.
51
+ RESULT="true"
52
+ else
53
+ # There is no need to run the other jobs.
54
+ RESULT="false"
55
+ fi
56
+
57
+ echo "result=$RESULT" >> $GITHUB_OUTPUT
58
+
35
59
check :
60
+ needs : run-determination
61
+ if : needs.run-determination.outputs.result == 'true'
36
62
runs-on : ubuntu-latest
37
63
38
64
steps :
Original file line number Diff line number Diff line change 7
7
8
8
# See: https://docs.github.com/en/actions/reference/events-that-trigger-workflows
9
9
on :
10
+ create :
10
11
push :
11
12
paths :
12
13
- " .github/workflows/check-npm-task.ya?ml"
@@ -29,7 +30,32 @@ permissions:
29
30
contents : read
30
31
31
32
jobs :
33
+ run-determination :
34
+ runs-on : ubuntu-latest
35
+ outputs :
36
+ result : ${{ steps.determination.outputs.result }}
37
+ steps :
38
+ - name : Determine if the rest of the workflow should run
39
+ id : determination
40
+ run : |
41
+ RELEASE_BRANCH_REGEX="refs/heads/[0-9]+.[0-9]+.x"
42
+ # The `create` event trigger doesn't support `branches` filters, so it's necessary to use Bash instead.
43
+ if [[
44
+ "${{ github.event_name }}" != "create" ||
45
+ "${{ github.ref }}" =~ $RELEASE_BRANCH_REGEX
46
+ ]]; then
47
+ # Run the other jobs.
48
+ RESULT="true"
49
+ else
50
+ # There is no need to run the other jobs.
51
+ RESULT="false"
52
+ fi
53
+
54
+ echo "result=$RESULT" >> $GITHUB_OUTPUT
55
+
32
56
validate :
57
+ needs : run-determination
58
+ if : needs.run-determination.outputs.result == 'true'
33
59
runs-on : ubuntu-latest
34
60
35
61
steps :
51
77
run : task --silent npm:validate
52
78
53
79
check-sync :
80
+ needs : run-determination
81
+ if : needs.run-determination.outputs.result == 'true'
54
82
runs-on : ubuntu-latest
55
83
56
84
steps :
Original file line number Diff line number Diff line change 7
7
8
8
# See: https://docs.github.com/actions/using-workflows/events-that-trigger-workflows
9
9
on :
10
+ create :
10
11
push :
11
12
paths :
12
13
- " .github/workflows/check-prettier-formatting-task.ya?ml"
206
207
repository_dispatch :
207
208
208
209
jobs :
210
+ run-determination :
211
+ runs-on : ubuntu-latest
212
+ outputs :
213
+ result : ${{ steps.determination.outputs.result }}
214
+ steps :
215
+ - name : Determine if the rest of the workflow should run
216
+ id : determination
217
+ run : |
218
+ RELEASE_BRANCH_REGEX="refs/heads/[0-9]+.[0-9]+.x"
219
+ # The `create` event trigger doesn't support `branches` filters, so it's necessary to use Bash instead.
220
+ if [[
221
+ "${{ github.event_name }}" != "create" ||
222
+ "${{ github.ref }}" =~ $RELEASE_BRANCH_REGEX
223
+ ]]; then
224
+ # Run the other jobs.
225
+ RESULT="true"
226
+ else
227
+ # There is no need to run the other jobs.
228
+ RESULT="false"
229
+ fi
230
+
231
+ echo "result=$RESULT" >> $GITHUB_OUTPUT
232
+
209
233
check :
234
+ needs : run-determination
235
+ if : needs.run-determination.outputs.result == 'true'
210
236
runs-on : ubuntu-latest
211
237
212
238
steps :
Original file line number Diff line number Diff line change 7
7
8
8
# See: https://docs.github.com/actions/using-workflows/events-that-trigger-workflows
9
9
on :
10
+ create :
10
11
push :
11
12
paths :
12
13
- " .github/workflows/check-taskfiles.ya?ml"
26
27
repository_dispatch :
27
28
28
29
jobs :
30
+ run-determination :
31
+ runs-on : ubuntu-latest
32
+ outputs :
33
+ result : ${{ steps.determination.outputs.result }}
34
+ steps :
35
+ - name : Determine if the rest of the workflow should run
36
+ id : determination
37
+ run : |
38
+ RELEASE_BRANCH_REGEX="refs/heads/[0-9]+.[0-9]+.x"
39
+ # The `create` event trigger doesn't support `branches` filters, so it's necessary to use Bash instead.
40
+ if [[
41
+ "${{ github.event_name }}" != "create" ||
42
+ "${{ github.ref }}" =~ $RELEASE_BRANCH_REGEX
43
+ ]]; then
44
+ # Run the other jobs.
45
+ RESULT="true"
46
+ else
47
+ # There is no need to run the other jobs.
48
+ RESULT="false"
49
+ fi
50
+
51
+ echo "result=$RESULT" >> $GITHUB_OUTPUT
52
+
29
53
validate :
30
54
name : Validate ${{ matrix.file }}
55
+ needs : run-determination
56
+ if : needs.run-determination.outputs.result == 'true'
31
57
runs-on : ubuntu-latest
32
58
33
59
strategy :
Original file line number Diff line number Diff line change 7
7
8
8
# See: https://docs.github.com/actions/using-workflows/events-that-trigger-workflows
9
9
on :
10
+ create :
10
11
push :
11
12
pull_request :
12
13
schedule :
16
17
repository_dispatch :
17
18
18
19
jobs :
20
+ run-determination :
21
+ runs-on : ubuntu-latest
22
+ outputs :
23
+ result : ${{ steps.determination.outputs.result }}
24
+ steps :
25
+ - name : Determine if the rest of the workflow should run
26
+ id : determination
27
+ run : |
28
+ RELEASE_BRANCH_REGEX="refs/heads/[0-9]+.[0-9]+.x"
29
+ # The `create` event trigger doesn't support `branches` filters, so it's necessary to use Bash instead.
30
+ if [[
31
+ "${{ github.event_name }}" != "create" ||
32
+ "${{ github.ref }}" =~ $RELEASE_BRANCH_REGEX
33
+ ]]; then
34
+ # Run the other jobs.
35
+ RESULT="true"
36
+ else
37
+ # There is no need to run the other jobs.
38
+ RESULT="false"
39
+ fi
40
+
41
+ echo "result=$RESULT" >> $GITHUB_OUTPUT
42
+
19
43
spellcheck :
44
+ needs : run-determination
45
+ if : needs.run-determination.outputs.result == 'true'
20
46
runs-on : ubuntu-latest
21
47
22
48
steps :
Original file line number Diff line number Diff line change 7
7
8
8
# See: https://docs.github.com/en/actions/reference/events-that-trigger-workflows
9
9
on :
10
+ create :
10
11
push :
11
12
paths :
12
13
- " .github/workflows/check-action-metadata-task.ya?ml"
28
29
repository_dispatch :
29
30
30
31
jobs :
32
+ run-determination :
33
+ runs-on : ubuntu-latest
34
+ outputs :
35
+ result : ${{ steps.determination.outputs.result }}
36
+ steps :
37
+ - name : Determine if the rest of the workflow should run
38
+ id : determination
39
+ run : |
40
+ RELEASE_BRANCH_REGEX="refs/heads/[0-9]+.[0-9]+.x"
41
+ # The `create` event trigger doesn't support `branches` filters, so it's necessary to use Bash instead.
42
+ if [[
43
+ "${{ github.event_name }}" != "create" ||
44
+ "${{ github.ref }}" =~ $RELEASE_BRANCH_REGEX
45
+ ]]; then
46
+ # Run the other jobs.
47
+ RESULT="true"
48
+ else
49
+ # There is no need to run the other jobs.
50
+ RESULT="false"
51
+ fi
52
+
53
+ echo "result=$RESULT" >> $GITHUB_OUTPUT
54
+
31
55
validate :
56
+ needs : run-determination
57
+ if : needs.run-determination.outputs.result == 'true'
32
58
runs-on : ubuntu-latest
33
59
34
60
steps :
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ name: Check General Formatting
3
3
4
4
# See: https://docs.github.com/actions/using-workflows/events-that-trigger-workflows
5
5
on :
6
+ create :
6
7
push :
7
8
pull_request :
8
9
schedule :
12
13
repository_dispatch :
13
14
14
15
jobs :
16
+ run-determination :
17
+ runs-on : ubuntu-latest
18
+ outputs :
19
+ result : ${{ steps.determination.outputs.result }}
20
+ steps :
21
+ - name : Determine if the rest of the workflow should run
22
+ id : determination
23
+ run : |
24
+ RELEASE_BRANCH_REGEX="refs/heads/[0-9]+.[0-9]+.x"
25
+ # The `create` event trigger doesn't support `branches` filters, so it's necessary to use Bash instead.
26
+ if [[
27
+ "${{ github.event_name }}" != "create" ||
28
+ "${{ github.ref }}" =~ $RELEASE_BRANCH_REGEX
29
+ ]]; then
30
+ # Run the other jobs.
31
+ RESULT="true"
32
+ else
33
+ # There is no need to run the other jobs.
34
+ RESULT="false"
35
+ fi
36
+
37
+ echo "result=$RESULT" >> $GITHUB_OUTPUT
38
+
15
39
check :
40
+ needs : run-determination
41
+ if : needs.run-determination.outputs.result == 'true'
16
42
runs-on : ubuntu-latest
17
43
18
44
steps :
Original file line number Diff line number Diff line change 7
7
8
8
# See: https://docs.github.com/actions/using-workflows/events-that-trigger-workflows
9
9
on :
10
+ create :
10
11
push :
11
12
paths :
12
13
- " .github/workflows/check-javascript-task.ya?ml"
@@ -32,7 +33,32 @@ permissions:
32
33
contents : read
33
34
34
35
jobs :
36
+ run-determination :
37
+ runs-on : ubuntu-latest
38
+ outputs :
39
+ result : ${{ steps.determination.outputs.result }}
40
+ steps :
41
+ - name : Determine if the rest of the workflow should run
42
+ id : determination
43
+ run : |
44
+ RELEASE_BRANCH_REGEX="refs/heads/[0-9]+.[0-9]+.x"
45
+ # The `create` event trigger doesn't support `branches` filters, so it's necessary to use Bash instead.
46
+ if [[
47
+ "${{ github.event_name }}" != "create" ||
48
+ "${{ github.ref }}" =~ $RELEASE_BRANCH_REGEX
49
+ ]]; then
50
+ # Run the other jobs.
51
+ RESULT="true"
52
+ else
53
+ # There is no need to run the other jobs.
54
+ RESULT="false"
55
+ fi
56
+
57
+ echo "result=$RESULT" >> $GITHUB_OUTPUT
58
+
35
59
check :
60
+ needs : run-determination
61
+ if : needs.run-determination.outputs.result == 'true'
36
62
runs-on : ubuntu-latest
37
63
38
64
steps :
You can’t perform that action at this time.
0 commit comments