Skip to content

Commit

Permalink
release pipeline fix (#189)
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewChubatiuk authored Dec 20, 2024
1 parent 90fc901 commit 93dc903
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,15 +51,16 @@ jobs:
else
echo "PKG_TAG=$PKG_TAG" >> $GITHUB_ENV
echo "Tag ${PKG_TAG} does not exist, pushing a new one"
if grep -q "^## tip$" CHANGELOG.md; then
echo "Processing CHANGELOG"
else
if ! grep -q "^## tip$" CHANGELOG.md; then
echo "ERROR: Not found 'tip' section in CHANGELOG. Please add relavant entries and recreate git tag"
exit 1
fi
export NOTES="$(sed -n '/## tip/,/## /p' CHANGELOG.md | sed -e '$d' -e '1d')"
sed -i 's/## tip/&\n\n## ${{ env.PKG_TAG }}/' CHANGELOG.md
echo $NOTES > NOTES.md
make vl-plugin-check
git tag ${TAG}
git push origin ${TAG}
fi
- name: Upload release assets
if: ${{ hashFiles('NOTES.md') != '' }}
Expand Down

0 comments on commit 93dc903

Please sign in to comment.