Skip to content

Commit e8e80fc

Browse files
committed
Add minor GHA improvements
See docker-library/bashbrew#77
1 parent e1f689e commit e8e80fc

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

.github/workflows/ci.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,18 @@ name: GitHub CI
33
on:
44
pull_request:
55
push:
6+
workflow_dispatch:
67
schedule:
78
- cron: 0 0 * * 0
89

910
defaults:
1011
run:
1112
shell: 'bash -Eeuo pipefail -x {0}'
1213

14+
concurrency:
15+
group: ${{ github.ref }}
16+
cancel-in-progress: true
17+
1318
jobs:
1419

1520
generate-jobs:
@@ -24,10 +29,15 @@ jobs:
2429
name: Generate Jobs
2530
run: |
2631
strategy="$("$BASHBREW_SCRIPTS/github-actions/generate.sh")"
32+
2733
strategy="$("$BASHBREW_SCRIPTS/github-actions/munge-i386.sh" -c <<<"$strategy")"
34+
2835
strategy="$(jq -c '.matrix.include |= [ .[] | select(.name | (test("i386") | not) or test("alpine")) ]' <<<"$strategy")" # Ubuntu no longer supports i386 (so we can only build test Alpine there; qemu-user-static is too slow for other arches)
29-
echo "strategy=$strategy" >> "$GITHUB_OUTPUT"
30-
jq . <<<"$strategy" # sanity check / debugging aid
36+
37+
EOF="EOF-$RANDOM-$RANDOM-$RANDOM"
38+
echo "strategy<<$EOF" >> "$GITHUB_OUTPUT"
39+
jq <<<"$strategy" . | tee -a "$GITHUB_OUTPUT"
40+
echo "$EOF" >> "$GITHUB_OUTPUT"
3141
3242
test:
3343
needs: generate-jobs

0 commit comments

Comments
 (0)