Skip to content

Commit

Permalink
bugfix: return the proper substring from the project's repository url…
Browse files Browse the repository at this point in the history
… in order to have valid GitHub project names in the crucible-release workflow
  • Loading branch information
k-rister committed Sep 26, 2024
1 parent af066c5 commit af98c4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/crucible-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ jobs:
# get 3rd column (repo URL) without the starting '/' (remove first char),
# so repo urls /a /b /c are extracted to a b c
# and add to a bash array ( a b c )
projects=( $(jq -r '.official[] | select(.name != "crucible") | .name' repos.json) )
projects=( $(jq -r '.official[] | select(.name != "crucible") | .repository | sub(".*\/"; "")' repos.json) )
# builtin implict join array "a","b","c" (double quotes for a valid json)
printf -v list '"%s",' "${projects[@]}"
# convert to a comma separated list ["a","b","c"]
Expand Down

0 comments on commit af98c4e

Please sign in to comment.