Skip to content

Commit

Permalink
fix: output echo
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinLupa committed Dec 11, 2024
1 parent de6a1a2 commit 2660030
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,15 @@ jobs:
token: ${{ secrets.GITHUB_TOKEN }}
release-type: node

- name: Install jq
run: sudo apt-get install -y jq

- name: Echo outputs
run: |
echo "Releases created: ${{ steps.release.outputs.releases_created }}"
echo "PRs created: ${{ steps.release.outputs.prs_created }}"
echo "PR details: ${{ steps.release.outputs.pr }}"
PR_NUMBER=$(echo '${{ steps.release.outputs.pr }}' | jq -r '.number')
echo "PR details: $PR_JSON"
PR_NUMBER=$(echo "$PR_JSON" | jq -r '.number')
echo "PR number: $PR_NUMBER"
env:
PR_JSON: ${{ steps.release.outputs.pr }}

0 comments on commit 2660030

Please sign in to comment.