Skip to content

Commit

Permalink
chore: debug CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Avivbens committed May 29, 2024
1 parent 51fa524 commit c4ca572
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/semantic-release-report.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,12 @@ jobs:
REPORT=$(cat output.txt | base64 -w 0)
# Extract version from report
VERSION=$(cat output.txt | grep "The next release version is" | node -e "console.log(require('fs').readFileSync(0, 'utf8').match(/[0-9]+\.[0-9\.]+/)[0])")
VERSION=$(cat output.txt | grep "The next release version is" | node -e "console.log(require('fs').readFileSync(0, 'utf8').match(/[0-9]+\.[0-9\.]+/)?.[0] ?? '')")
if [ -z "$VERSION" ]; then
echo "No version found in report"
exit 1
fi
echo "releaseNote=$REPORT" >> $GITHUB_OUTPUT
echo "version=$VERSION" >> $GITHUB_OUTPUT
Expand Down

0 comments on commit c4ca572

Please sign in to comment.