Skip to content

Commit

Permalink
fix(ct): base image build matrix output must be on a single line
Browse files Browse the repository at this point in the history
Fix jq output by removing newlines and superfluous whitespace.
  • Loading branch information
poikilotherm committed Apr 10, 2024
1 parent e923663 commit def5d9e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/container_base_push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ jobs:
run: |
# Get last three releases and include develop branch as matrix elements
#if [[ "${{ github.event_name }}" == "schedule" ]]; then
echo "branches=$(curl -f -sS https://api.github.com/repos/IQSS/dataverse/releases | jq '[ .[0:3] | .[].tag_name, "develop" ]')" | tee -a "$GITHUB_OUTPUT"
echo "branches=$(curl -f -sS https://api.github.com/repos/IQSS/dataverse/releases | \
jq '[ .[0:3] | .[].tag_name, "develop" ]')" | tr -d "\n" | tr -s " " | \
tee -a "$GITHUB_OUTPUT"
#else
# echo "branches=['develop']" | tee -a "$GITHUB_OUTPUT"
#fi
Expand Down

0 comments on commit def5d9e

Please sign in to comment.