Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: Ask jq to return a single line JSON string. #101

Merged
merged 1 commit into from
Feb 2, 2025

Conversation

nasa42
Copy link
Owner

@nasa42 nasa42 commented Feb 2, 2025

Follow-up to #96.

This fixes error in https://github.com/nasa42/webterm/actions/runs/13101293957/job/36549861594

  if [[ -f relevant_releases.jsonl ]]; then
    FILTERED=$(cat relevant_releases.jsonl | jq -s)
    echo "Filtered releases: $FILTERED"
    echo "releases=$FILTERED" >> $GITHUB_OUTPUT
  else
    echo "No relevant releases found."
    echo "releases=[]" >> $GITHUB_OUTPUT
  fi

output

Filtered releases: [
  {
    "package_name": "webterm-agent",
    "prs": [],
    "tag": "webterm-agent-v0.2.2",
    "version": "0.2.2"
  },
  {
    "package_name": "webterm-relay",
    "prs": [],
    "tag": "webterm-relay-v0.2.2",
    "version": "0.2.2"
  }
]
Error: Unable to process file command 'output' successfully.
Error: Invalid format '  {'

@nasa42 nasa42 merged commit 5fa6f5b into main Feb 2, 2025
7 checks passed
@nasa42 nasa42 deleted the vik-release-workflow-fix-jq branch February 2, 2025 18:32
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.

1 participant