Skip to content

Commit

Permalink
Updated release drafter to use CalVer version.
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexSkrypnyk committed Mar 21, 2023
1 parent 4698387 commit 8394001
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/release-drafter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
10 changes: 10 additions & 0 deletions .github/workflows/draft-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

0 comments on commit 8394001

Please sign in to comment.