ci: More robust way to write JSON to file

pull/201/head
Robert Dailey 1 year ago
parent 53d6fdf831
commit 1cbc5a9d1b

@ -37,10 +37,15 @@ jobs:
with:
route: GET /repos/{org_repo}/releases/tags/{tag}
- name: Write JSON to File
uses: devops-actions/json-to-file@v1.0.1
with:
json: ${{ steps.release.outputs.data }}
filename: release.json
# Write changelog to a file to avoid certain characters from being processed by the shell
- name: Get Information from Release
run: |
echo '${{ steps.release.outputs.data }}' > release.json
jq -r '.assets[].browser_download_url' release.json > assets.txt
jq -r '.body' release.json > changelog.txt

Loading…
Cancel
Save