From 8394001f9073972412a139fa0a34784e2bb479c3 Mon Sep 17 00:00:00 2001 From: Alex Skrypnyk Date: Wed, 22 Mar 2023 01:06:14 +1100 Subject: [PATCH] Updated release drafter to use CalVer version. --- .github/release-drafter.yml | 2 +- .github/workflows/draft-release.yml | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml index 699ff47..a6783c8 100644 --- a/.github/release-drafter.yml +++ b/.github/release-drafter.yml @@ -7,6 +7,6 @@ template: | $CHANGES - **Full Changelog**: https://github.com/$OWNER/$REPOSITORY/compare/$PREVIOUS_TAG...$NEXT_MINOR_VERSION + **Full Changelog**: https://github.com/$OWNER/$REPOSITORY/compare/$PREVIOUS_TAG...$RESOLVED_VERSION $CONTRIBUTORS diff --git a/.github/workflows/draft-release.yml b/.github/workflows/draft-release.yml index 12b1f6c..f92dc9e 100644 --- a/.github/workflows/draft-release.yml +++ b/.github/workflows/draft-release.yml @@ -17,6 +17,16 @@ jobs: pull-requests: write runs-on: ubuntu-latest steps: + - name: Generate CalVer version + id: calver + run: | + export VERSION="$(date "+%y.%-m").0" + echo ::set-output name=version::${VERSION} + echo "Version set to ${VERSION}" - uses: release-drafter/release-drafter@v5 + with: + tag: ${{ steps.calver.outputs.version }} + name: ${{ steps.calver.outputs.version }} + version: ${{ steps.calver.outputs.version }} env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}