Skip to content

Commit

Permalink
Merge pull request #156 from adopted-ember-addons/test-release-plan
Browse files Browse the repository at this point in the history
testing error-handling in release-plan
  • Loading branch information
mansona authored Feb 16, 2024
2 parents 1e295d2 + b0d5ee1 commit 4c40b6b
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions .github/workflows/plan-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,18 @@ jobs:
id: explanation
run: |
set -x
pnpm release-plan prepare
echo 'text<<EOF' >> $GITHUB_OUTPUT
jq .description .release-plan.json -r >> $GITHUB_OUTPUT
echo 'EOF' >> $GITHUB_OUTPUT
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
else
echo 'text<<EOF' >> $GITHUB_OUTPUT
jq .description .release-plan.json -r >> $GITHUB_OUTPUT
echo 'EOF' >> $GITHUB_OUTPUT
fi
env:
GITHUB_AUTH: ${{ secrets.GITHUB_TOKEN }}

Expand Down

0 comments on commit 4c40b6b

Please sign in to comment.