Skip to content

[WIP] Fix jq syntax error in publish-curseforge.yml#4

Merged
YoavTC merged 1 commit intomainfrom
copilot/fix-jq-syntax-error
Dec 11, 2025
Merged

[WIP] Fix jq syntax error in publish-curseforge.yml#4
YoavTC merged 1 commit intomainfrom
copilot/fix-jq-syntax-error

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Dec 11, 2025

Thanks for asking me to work on this. I will get started on it and keep this PR's description up to date as I form a plan and make progress.

Original prompt

The GitHub Actions workflow at .github/workflows/publish-curseforge.yml has a jq syntax error that's causing the workflow to fail.

Problem

Line 26 has incorrect jq syntax with a space after the dot:

ASSET_URL=$(echo "$ASSETS" | jq -r '.[] | select(. name == "decorations-plus.zip") | .url')

This causes the error:

jq: error: syntax error, unexpected == (Unix shell quoting issues?) at <top-level>, line 1:
.[] | select(. name == "decorations-plus.zip") | .url

Solution

Remove the space after the dot in .name:

ASSET_URL=$(echo "$ASSETS" | jq -r '.[] | select(.name == "decorations-plus.zip") | .url')

Also check line 33 for the same issue:

echo "$ASSETS" | jq -r '.[].name'

Please fix all instances of this jq syntax error in the workflow file.

This pull request was created as a result of the following prompt from Copilot chat.

The GitHub Actions workflow at .github/workflows/publish-curseforge.yml has a jq syntax error that's causing the workflow to fail.

Problem

Line 26 has incorrect jq syntax with a space after the dot:

ASSET_URL=$(echo "$ASSETS" | jq -r '.[] | select(. name == "decorations-plus.zip") | .url')

This causes the error:

jq: error: syntax error, unexpected == (Unix shell quoting issues?) at <top-level>, line 1:
.[] | select(. name == "decorations-plus.zip") | .url

Solution

Remove the space after the dot in .name:

ASSET_URL=$(echo "$ASSETS" | jq -r '.[] | select(.name == "decorations-plus.zip") | .url')

Also check line 33 for the same issue:

echo "$ASSETS" | jq -r '.[].name'

Please fix all instances of this jq syntax error in the workflow file.


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

@YoavTC YoavTC marked this pull request as ready for review December 11, 2025 13:25
@YoavTC YoavTC merged commit 7455dec into main Dec 11, 2025
1 check failed
Copilot AI requested a review from YoavTC December 11, 2025 13:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants