Skip to content

Commit 870db2c

Browse files
committed
Fix virustotal release notes workflow step
1 parent f763249 commit 870db2c

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/release.yml

+6-2
Original file line numberDiff line numberDiff line change
@@ -200,10 +200,13 @@ jobs:
200200
- name: Add VirusTotal Info to Release Notes
201201
if: startsWith(github.ref, 'refs/tags/v')
202202
run: |
203-
# get release notes
203+
# github api url
204204
url=https://api.github.com/repos/${GITHUB_REPOSITORY}/releases/${{ steps.generate_release_notes.outputs.id }}
205+
206+
# get release notes
205207
body=$(
206208
curl \
209+
-s \
207210
-L \
208211
-H "Accept: application/vnd.github+json" \
209212
-H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
@@ -219,10 +222,11 @@ jobs:
219222
name=$(sed -e 's/^\.\/scan\/\([^=]\+\)=.*/\1/' <<< "$line")
220223
vturl=$(sed -e 's/.*=\(https.*\)/\1/' <<< "$line")
221224
body+="* [$name]($vturl)$nl"
222-
done <<< "$a"
225+
done <<< "${{ steps.virustotal.outputs.analysis }}"
223226
224227
# update release notes
225228
curl \
229+
-s \
226230
-L \
227231
-X PATCH \
228232
-H "Accept: application/vnd.github+json" \

0 commit comments

Comments
 (0)