Skip to content

Commit

Permalink
fix(bash script): fix bash script
Browse files Browse the repository at this point in the history
  • Loading branch information
masoudmanson committed Sep 6, 2023
1 parent d4ae6e9 commit ffd8e46
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/gh-release-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,11 @@ jobs:
run: |
CURRENT_VERSIONS="["
for package_json in $(find ./packages -name package.json); do
version=$(jq -r .version $package_json)
version=$(jq -r .version "$package_json")
CURRENT_VERSIONS="${CURRENT_VERSIONS}{\"version\":\"${version}\"},"
done
CURRENT_VERSIONS="${CURRENT_VERSIONS%,}]" # Remove trailing comma
CURRENT_VERSIONS="${CURRENT_VERSIONS%,}" # Remove trailing comma
CURRENT_VERSIONS="${CURRENT_VERSIONS}]" # Close the JSON array
echo "CURRENT_VERSIONS=${CURRENT_VERSIONS}" >> $GITHUB_ENV
create_github_release:
Expand Down

0 comments on commit ffd8e46

Please sign in to comment.