File tree Expand file tree Collapse file tree 1 file changed +17
-6
lines changed Expand file tree Collapse file tree 1 file changed +17
-6
lines changed Original file line number Diff line number Diff line change @@ -3,37 +3,48 @@ name: GitHub CI
3
3
on :
4
4
pull_request :
5
5
push :
6
+ workflow_dispatch :
6
7
schedule :
7
8
- cron : 0 0 * * 0
8
- workflow_dispatch :
9
9
10
10
defaults :
11
11
run :
12
12
shell : ' bash -Eeuo pipefail -x {0}'
13
13
14
+ concurrency :
15
+ group : ${{ github.workflow }}-${{ github.ref }}
16
+ cancel-in-progress : true
17
+
18
+ permissions :
19
+ contents : read
20
+
14
21
jobs :
22
+
15
23
generate-jobs :
16
24
name : Generate Jobs
17
25
runs-on : ubuntu-latest
18
26
outputs :
19
27
strategy : ${{ steps.generate-jobs.outputs.strategy }}
20
28
steps :
21
- - uses : actions/checkout@v3
22
- - uses : docker-library/bashbrew@v0.1.5
29
+ - uses : actions/checkout@v4
30
+ - uses : docker-library/bashbrew@HEAD
23
31
- id : generate-jobs
24
32
name : Generate Jobs
25
33
run : |
26
34
strategy="$(GITHUB_REPOSITORY=satosa "$BASHBREW_SCRIPTS/github-actions/generate.sh")"
27
- echo "strategy=$strategy" >> "$GITHUB_OUTPUT"
28
- jq . <<<"$strategy" # sanity check / debugging aid
35
+
36
+ EOF="EOF-$RANDOM-$RANDOM-$RANDOM"
37
+ echo "strategy<<$EOF" >> "$GITHUB_OUTPUT"
38
+ jq <<<"$strategy" . | tee -a "$GITHUB_OUTPUT"
39
+ echo "$EOF" >> "$GITHUB_OUTPUT"
29
40
30
41
test :
31
42
needs : generate-jobs
32
43
strategy : ${{ fromJson(needs.generate-jobs.outputs.strategy) }}
33
44
name : ${{ matrix.name }}
34
45
runs-on : ${{ matrix.os }}
35
46
steps :
36
- - uses : actions/checkout@v3
47
+ - uses : actions/checkout@v4
37
48
- name : Prepare Environment
38
49
run : ${{ matrix.runs.prepare }}
39
50
- name : Pull Dependencies
You can’t perform that action at this time.
0 commit comments