Skip to content

Commit

Permalink
CI: Fixed bash not interpolating inside single quotes
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Helwer <2n8rn1w1f@mozmail.com>
  • Loading branch information
ahelwer committed Dec 6, 2024
1 parent 04d229c commit 0ea296d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/rolling-prerelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ jobs:
## Delete old assets and upload replacement assets (if delete fails we still try to upload the new asset)
RELEASE_ASSETS_URL="https://api.github.com/repos/${{ github.repository }}/releases/$DRAFT_RELEASE/assets"
echo "Crawling assets in release from '$RELEASE_ASSETS_URL'..."
ID=$(curl -sS -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" "$RELEASE_ASSETS_URL" --header "Content-Type: application/json" | jq '.[]| select(.name == "$TLAPM_ZIP") | .id')
ID=$(curl -sS -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" "$RELEASE_ASSETS_URL" --header "Content-Type: application/json" | jq ".[]| select(.name == \"$TLAPM_ZIP\") | .id")
echo "Found asset ID: '$ID'"
ASSET_ID_URL="https://api.github.com/repos/${{ github.repository }}/releases/assets/$ID"
echo "Deleting old release from '$ASSET_ID_URL'..."
Expand Down

0 comments on commit 0ea296d

Please sign in to comment.