Skip to content

Commit

Permalink
fix: git cliff
Browse files Browse the repository at this point in the history
  • Loading branch information
zifeo committed Dec 8, 2023
1 parent 07cf139 commit 734b366
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,20 +25,20 @@ jobs:
with:
deno-version: v${{ env.DENO_VERSION }}
- uses: kenji-miyake/setup-git-cliff@v1
- id: checks
run: |
- run: |
VERSION=$(deno run -A dev/lock.ts --version)
if [[ "${{ github.ref_name }}" != "v$VERSION" ]]; then
echo "Tag ${{ github.ref_name }} does not match code version v$VERSION, stopping."
exit -1
fi
echo "Releasing v$VERSION"
echo "release_note=$(git cliff --latest --strip header)" >> $GITHUB_OUTPUT
git cliff --latest --strip header --output CHANGE.md
cat CHANGE.md
- uses: ncipollo/release-action@v1
with:
tag: ${{ github.ref_name }}
makeLatest: true
body: ${{ steps.checks.outputs.release_note }}
bodyFile: "CHANGE.md"
discussionCategory: "Announcements"

meta-cli:
Expand Down

0 comments on commit 734b366

Please sign in to comment.