Skip to content

Commit

Permalink
chore: use delimiter in accorance with docs to handle strings with ne…
Browse files Browse the repository at this point in the history
…wlines per GHA docs (#11741)
  • Loading branch information
alessbell authored Apr 1, 2024
1 parent d6aed0e commit 26f2ccc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/snapshot-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down

0 comments on commit 26f2ccc

Please sign in to comment.