From 26f2cccf15afd4bb7437ee8d37789434f5f8bbbd Mon Sep 17 00:00:00 2001 From: Alessia Bellisario Date: Mon, 1 Apr 2024 13:03:19 -0400 Subject: [PATCH] chore: use delimiter in accorance with docs to handle strings with newlines per GHA docs (#11741) --- .github/workflows/snapshot-release.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/snapshot-release.yml b/.github/workflows/snapshot-release.yml index cf496e33928..0db436315f3 100644 --- a/.github/workflows/snapshot-release.yml +++ b/.github/workflows/snapshot-release.yml @@ -45,7 +45,10 @@ jobs: - name: Detect new changesets id: added-files run: | - echo "changesets=$(git diff --name-only --diff-filter=A ${{ steps.comment-branch.outputs.base_sha }} ${{ steps.comment-branch.outputs.head_sha }} .changeset/*.md)" >> "$GITHUB_OUTPUT" + delimiter="$(openssl rand -hex 8)" + echo "changesets<<${delimiter}" >> "${GITHUB_OUTPUT}" + echo "$(git diff --name-only --diff-filter=A ${{ steps.comment-branch.outputs.base_sha }} ${{ steps.comment-branch.outputs.head_sha }} .changeset/*.md)" >> "${GITHUB_OUTPUT}" + echo "${delimiter}" >> "${GITHUB_OUTPUT}" - name: Append NPM token to .npmrc run: |