Skip to content

Commit

Permalink
Fix jq version issue
Browse files Browse the repository at this point in the history
  • Loading branch information
jbigot committed Dec 5, 2024
1 parent aa59725 commit d4ca13f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions generate
Original file line number Diff line number Diff line change
Expand Up @@ -97,15 +97,15 @@ fi
## GITHUB
########################
curl -fsS -H "Authorization: Bearer ${CI_PAGES_TOKEN}" https://api.github.com/repos/${GH_PROJECT_NAME}/actions/artifacts \
| jq --raw-output0 '.artifacts
| jq -cr '.artifacts
| map(select(.name == "pages" and (.workflow_run.head_branch
| test("^v[0-9]+\\.[0-9]+$"))))
| group_by(.workflow_run.head_branch)
| map(sort_by(.created_at))
| map(last)
| map({url:.archive_download_url,branch:.workflow_run.head_branch})
| .[]' \
| while read -d $'\0' TAG_INFO
| while read TAG_INFO
do
DOWNLOAD_URL="$(jq -r .url <<< "$TAG_INFO")"
TAG="$(jq -r .branch <<< "$TAG_INFO" | sed 's/^v//')"
Expand Down

0 comments on commit d4ca13f

Please sign in to comment.