From d99f2b808b03b9a3d2215e2ed60ee911ba0f1fea Mon Sep 17 00:00:00 2001 From: Andrew Nester Date: Tue, 23 Apr 2024 15:31:36 +0200 Subject: [PATCH] Remove `JSON.parse` call from homebrew-tap action (#1393) ## Changes `needs.goreleaser.outputs.artifacts` already contains valid JS object so no need to make it a string and try to parse --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e09b500f..8643ac35 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -84,7 +84,7 @@ jobs: with: github-token: ${{ secrets.DECO_GITHUB_TOKEN }} script: | - let artifacts = JSON.parse('${{ needs.goreleaser.outputs.artifacts }}') + let artifacts = ${{ needs.goreleaser.outputs.artifacts }} artifacts = artifacts.filter(a => a.type == "Archive") artifacts = new Map( artifacts.map(a => [