Skip to content

Commit 7703558

Browse files
authored
Merge pull request #77 from infosiftr/github-actions
Add several improvements to GHA example
2 parents a67d608 + a0ec8ce commit 7703558

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

scripts/github-actions/example-ci.yml

Lines changed: 10 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,8 +29,11 @@ jobs:
2429
name: Generate Jobs
2530
run: |
2631
strategy="$("$BASHBREW_SCRIPTS/github-actions/generate.sh")"
27-
echo "strategy=$strategy" >> "$GITHUB_OUTPUT"
28-
jq . <<<"$strategy" # sanity check / debugging aid
32+
33+
EOF="EOF-$RANDOM-$RANDOM-$RANDOM"
34+
echo "strategy<<$EOF" >> "$GITHUB_OUTPUT"
35+
jq <<<"$strategy" . | tee -a "$GITHUB_OUTPUT"
36+
echo "$EOF" >> "$GITHUB_OUTPUT"
2937
3038
test:
3139
needs: generate-jobs

0 commit comments

Comments
 (0)