Skip to content

Commit

Permalink
Better release naming
Browse files Browse the repository at this point in the history
  • Loading branch information
mwhirls committed Jan 11, 2024
1 parent 60164ac commit 175ccca
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ on:
branches: [ "main" ]
schedule:
- cron: "0 0 * * 0"

env:
MAJOR_VERSION: 0
MINOR_VERSION: 0

jobs:
build:
Expand All @@ -19,16 +23,17 @@ jobs:
uses: scottbrenner/generate-changelog-action@master
id: Changelog
env:
REPO: ${{ github.repository }}
REPO: ${{github.repository}}
- name: Create Release
id: create_release
uses: actions/create-release@latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
RELEASE_TAG: v$MAJOR_VERSION.$MINOR_VERSION.${{github.run_number}}_${{github.ref}}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
tag_name: $RELEASE_TAG
release_name: Release $RELEASE_TAG
body: |
${{ steps.Changelog.outputs.changelog }}
draft: false
prerelease: false
prerelease: false

0 comments on commit 175ccca

Please sign in to comment.