From d9de34e474f401fd3f943a9945de647ddb310a86 Mon Sep 17 00:00:00 2001 From: Robert Dailey Date: Sun, 22 Jan 2023 17:30:39 -0600 Subject: [PATCH] ci: use env var instead of file for notify.yml json --- .github/workflows/notify.yml | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/.github/workflows/notify.yml b/.github/workflows/notify.yml index d6e190d1..dba334b1 100644 --- a/.github/workflows/notify.yml +++ b/.github/workflows/notify.yml @@ -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