Skip to content

Commit

Permalink
fix error-handling for release-plan
Browse files Browse the repository at this point in the history
  • Loading branch information
mansona committed Feb 16, 2024
1 parent 62c80c4 commit 40e0fb1
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/plan-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,21 +61,20 @@ jobs:
- name: "Generate Explanation and Prep Changelogs"
id: explanation
run: |
set -x
set +e
pnpm release-plan prepare 2> >(tee -a stderr.log >&2)
if [ $? -ne 0 ]; then
echo 'text<<EOF' >> $GITHUB_OUTPUT
cat stderr.log >> $GITHUB_OUTPUT
echo 'EOF' >> $GITHUB_OUTPUT
rm stderr.log
else
echo 'text<<EOF' >> $GITHUB_OUTPUT
jq .description .release-plan.json -r >> $GITHUB_OUTPUT
echo 'EOF' >> $GITHUB_OUTPUT
fi
exit 0
env:
GITHUB_AUTH: ${{ secrets.GITHUB_TOKEN }}

Expand Down

0 comments on commit 40e0fb1

Please sign in to comment.