From 9d9e1a9513f7d961256c244ecef8d8267605dcc8 Mon Sep 17 00:00:00 2001 From: Alex Skrypnyk Date: Mon, 19 Feb 2024 18:19:01 +1100 Subject: [PATCH] Switched to CalVer release drafter. --- .github/workflows/draft-release-notes.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/draft-release-notes.yml b/.github/workflows/draft-release-notes.yml index c9e0353..6b257cf 100644 --- a/.github/workflows/draft-release-notes.yml +++ b/.github/workflows/draft-release-notes.yml @@ -19,7 +19,18 @@ jobs: runs-on: ubuntu-latest steps: + - name: Generate CalVer version + id: calver + run: | + export VERSION="$(date "+%y.%-m").0" + echo "version=${VERSION}" >> $GITHUB_OUTPUT + echo "Version set to ${VERSION}" + - name: Draft release notes uses: release-drafter/release-drafter@v6 + with: + tag: ${{ steps.calver.outputs.version }} + name: ${{ steps.calver.outputs.version }} + version: ${{ steps.calver.outputs.version }} env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}