Skip to content

Commit 20aa9aa

Browse files
committed
Inline code markdown in platform-remove workflow output
Otherwise, supplying just a '*', or e.g. '*foo*', will make for funny output.
1 parent 85491d2 commit 20aa9aa

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/platform-remove.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ jobs:
3838
- name: Expand list of manifests to remove
3939
run: |
4040
echo '## Manifests input for removal' >> "$GITHUB_STEP_SUMMARY"
41-
set -f
42-
echo ${{inputs.manifests}} | xargs -n 1 echo - >> "$GITHUB_STEP_SUMMARY"
41+
set -f # no expansion of globs to file names, we want to pass * straight on for S3 wildcard matching (but still expand curly braces)
42+
printf -- '- `%s`\n' ${{inputs.manifests}} >> "$GITHUB_STEP_SUMMARY"
4343
- name: Restore cached Docker image
4444
id: restore-docker
4545
uses: actions/cache/restore@v4

.github/workflows/platform-sync.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848
echo '## Stacks to sync' >> "$GITHUB_STEP_SUMMARY"
4949
set -o pipefail
5050
stacks=(${{ inputs.stack-heroku-20 == true && 'heroku-20' || ''}} ${{ inputs.stack-heroku-22 == true && 'heroku-22' || ''}} ${{ inputs.stack-heroku-24-amd64 == true && 'heroku-24-amd64' || ''}} ${{ inputs.stack-heroku-24-arm64 == true && 'heroku-24-arm64' || ''}})
51-
printf "%s\n" "${stacks[@]}" | xargs -n1 echo - >> "$GITHUB_STEP_SUMMARY"
51+
printf -- "- %s\n" "${stacks[@]}" >> "$GITHUB_STEP_SUMMARY"
5252
echo -n "matrix=" >> "$GITHUB_OUTPUT"
5353
printf "%s\n" "${stacks[@]}" | jq -jcRn '[inputs|select(length>0)]' >> "$GITHUB_OUTPUT"
5454
docker-build:

0 commit comments

Comments
 (0)