From 426b9bba50750aa03709ea1c53454b0f73ea9ba4 Mon Sep 17 00:00:00 2001 From: Vui Lam Date: Tue, 5 Mar 2024 21:16:15 -0800 Subject: [PATCH] Fix shell interpolation issues in get-new-contributors step For more info see: https://stackoverflow.com/questions/75024695/github-actions\ -how-to-handle-a-in-json-when-passing-it-across-steps --- .github/workflows/release.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 110944112..10e2f1917 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -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