Skip to content

Commit

Permalink
use raw strings, not JSON texts in jq usage
Browse files Browse the repository at this point in the history
  • Loading branch information
brainelectronics committed Oct 12, 2024
1 parent 4d7e7e9 commit 0ae186e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ jobs:
--debug
echo "CHANGELOG_JSON=$(jq -c . < changelog.json)" >> $GITHUB_ENV
echo 'LATEST_DESCRIPTION<<"EOT"' >> $GITHUB_OUTPUT
jq ".info.description" changelog.json >> $GITHUB_OUTPUT
jq -r ".info.description" changelog.json >> $GITHUB_OUTPUT
echo '"EOT"' >> $GITHUB_OUTPUT
echo "latest_version=$(jq '.info.version' changelog.json)" >> $GITHUB_ENV
echo "latest_version=$(jq -r '.info.version' changelog.json)" >> $GITHUB_ENV
- name: Build package
run: |
poetry run changelog2version \
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ jobs:
--debug
echo "CHANGELOG_JSON=$(jq -c . < changelog.json)" >> $GITHUB_ENV
echo 'LATEST_DESCRIPTION<<"EOT"' >> $GITHUB_OUTPUT
jq ".info.description" changelog.json >> $GITHUB_OUTPUT
jq -r ".info.description" changelog.json >> $GITHUB_OUTPUT
echo '"EOT"' >> $GITHUB_OUTPUT
echo "latest_version=$(jq '.info.version' changelog.json)" >> $GITHUB_ENV
echo "latest_version=$(jq -r '.info.version' changelog.json)" >> $GITHUB_ENV
- name: Build package
run: |
poetry run changelog2version \
Expand Down

0 comments on commit 0ae186e

Please sign in to comment.