Skip to content

Commit

Permalink
Fix jq output format (#116)
Browse files Browse the repository at this point in the history
* fix jq code

* fix jq output format

* fix name of the action

* fix output for github
  • Loading branch information
mashehu authored Feb 11, 2025
1 parent 9801f84 commit d8737d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/backups.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ jobs:
json=$(curl -s https://nf-co.re/pipeline_names.json)
# Default to "all" if running on schedule (no inputs available) or if input is "all"
if [ -z "${{ inputs.pipeline }}" ] || [ "${{ inputs.pipeline }}" = "all" ]; then
echo "matrix=$json" >> $GITHUB_OUTPUT
echo "matrix=$(echo $json | jq -c '.')" >> $GITHUB_OUTPUT
else
echo "matrix=$(echo $json | jq --arg p "${{ inputs.pipeline }}" '{pipeline: [.pipeline[] | select(. == $p)]}')" >> $GITHUB_OUTPUT
echo "matrix=$(echo $json | jq -c --arg p "${{ inputs.pipeline }}" '{pipeline: [.pipeline[] | select(. == $p)]}')" >> $GITHUB_OUTPUT
fi
backup:
Expand Down

0 comments on commit d8737d8

Please sign in to comment.