Skip to content

Commit

Permalink
Fix repo urls
Browse files Browse the repository at this point in the history
remove initial / from the url
  • Loading branch information
rafaelfolco committed Jul 31, 2024
1 parent bcd99dd commit 0753046
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/crucible-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -116,11 +116,13 @@ jobs:
run: |
cd $GITHUB_WORKSPACE
cd crucible/config
# get 3rd column (repo URL) and add to a bash array ( a b c )
projects=( $(grep -v ^# default_subprojects | awk {'print $3'} ) )
# builtin implict join array a,b,c
# 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=( $(grep -v ^# default_subprojects | awk {'print $3'} | cut -c2- ) )
# 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]
# convert to a comma separated list ["a","b","c"]
echo "repos=[${list%,}]" >> $GITHUB_OUTPUT
- name: Display sub-projects repos list
id: display-repos
Expand All @@ -145,8 +147,6 @@ jobs:
uses: actions/checkout@v4
with:
repository: perftool-incubator/${{ matrix.repository }}
ref: ''
path: ''
- name: push/delete release tag
if: ${{ inputs.dry_run == false }}
env:
Expand Down

0 comments on commit 0753046

Please sign in to comment.