Skip to content

Commit 40e0fb1

Browse files
committed
fix error-handling for release-plan
1 parent 62c80c4 commit 40e0fb1

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

.github/workflows/plan-release.yml

+2-3
Original file line numberDiff line numberDiff line change
@@ -61,21 +61,20 @@ jobs:
6161
- name: "Generate Explanation and Prep Changelogs"
6262
id: explanation
6363
run: |
64-
set -x
64+
set +e
6565
6666
pnpm release-plan prepare 2> >(tee -a stderr.log >&2)
6767
6868
if [ $? -ne 0 ]; then
6969
echo 'text<<EOF' >> $GITHUB_OUTPUT
7070
cat stderr.log >> $GITHUB_OUTPUT
7171
echo 'EOF' >> $GITHUB_OUTPUT
72+
rm stderr.log
7273
else
7374
echo 'text<<EOF' >> $GITHUB_OUTPUT
7475
jq .description .release-plan.json -r >> $GITHUB_OUTPUT
7576
echo 'EOF' >> $GITHUB_OUTPUT
7677
fi
77-
78-
exit 0
7978
env:
8079
GITHUB_AUTH: ${{ secrets.GITHUB_TOKEN }}
8180

0 commit comments

Comments
 (0)