8000 Switch to multi-line GITHUB_OUTPUT · phantomve/python@5540a45 · GitHub
[go: up one dir, main page]

Skip to content

Commit 5540a45

Browse files
committed
Switch to multi-line GITHUB_OUTPUT
GitHub's being weird about our single-line GITHUB_OUTPUT now, so let's switch to multi-line (which also lets us have a prettier multi-line value, so why not) Also incorporate other GHA improvements from bashbrew example
1 parent 4d12931 commit 5540a45

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

.github/workflows/ci.yml

Lines changed: 9 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:
@@ -41,8 +46,10 @@ jobs:
4146
)
4247
')"
4348
44-
echo "strategy=$strategy" >> "$GITHUB_OUTPUT"
45-
jq . <<<"$strategy" # sanity check / debugging aid
49+
EOF="EOF-$RANDOM-$RANDOM-$RANDOM"
50+
echo "strategy<<$EOF" >> "$GITHUB_OUTPUT"
51+
jq <<<"$strategy" . | tee -a "$GITHUB_OUTPUT"
52+
echo "$EOF" >> "$GITHUB_OUTPUT"
4653
4754
test:
4855
needs: generate-jobs

0 commit comments

Comments
 (0)
0