ci: use env var instead of file for notify.yml json

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

@ -37,17 +37,14 @@ 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
# Write changelog to an environment variable to avoid certain characters from being processed
# by the shell
- name: Get Information from Release
env:
DATA: ${{ steps.release.outputs.data }}
run: |
jq -r '.assets[].browser_download_url' release.json > assets.txt
jq -r '.body' release.json > changelog.txt
jq -r '.assets[].browser_download_url' <<<"$DATA" > assets.txt
jq -r '.body' <<<"$DATA" > changelog.txt
- name: Setup Python
uses: actions/setup-python@v4

Loading…
Cancel
Save