Skip to content

Commit

Permalink
Fix shell interpolation issues in get-new-contributors step
Browse files Browse the repository at this point in the history
For more info see:
https://stackoverflow.com/questions/75024695/github-actions\
-how-to-handle-a-in-json-when-passing-it-across-steps
  • Loading branch information
vuil committed Mar 6, 2024
1 parent 0ef7c70 commit 6f94184
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,11 @@ jobs:

- name: 'Identify New Contributors Section'
id: get-new-contributors
env:
body: "${{ fromJson(steps.get-github-release-notes.outputs.data).body }}"
run: |
githubOutput="/tmp/${{ steps.time.outputs.time }}-github-output"
echo "${{ fromJson(steps.get-github-release-notes.outputs.data).body }}" > "$githubOutput"
echo "$body" > "$githubOutput"
- name: Generate the release notes
shell: bash
Expand Down

0 comments on commit 6f94184

Please sign in to comment.