diff --git a/.github/workflows/create_draft_release.yml b/.github/workflows/create_draft_release.yml index 04bb071d..074712d9 100644 --- a/.github/workflows/create_draft_release.yml +++ b/.github/workflows/create_draft_release.yml @@ -6,35 +6,32 @@ on: workflow_dispatch: jobs: - tag_release: + get_release_tag: runs-on: ubuntu-latest permissions: contents: write steps: - uses: actions/checkout@v2 - - name: Bump version and push tag + - name: Get latest version tag id: tag_version - uses: mathieudutour/github-tag-action@v6.0 + uses: actions-ecosystem/action-get-latest-tag@v1 with: - default_bump: 'minor' - default_prerelease_bump: 'minor' - tag_prefix: 'v' - dry_run: false - github_token: ${{ secrets.GITHUB_TOKEN }} - - run: echo ${{ steps.tag_version.outputs.new_tag }} + semver_only: true + with_initial_version: false + - run: echo ${{ steps.tag_version.outputs.tag }} - uses: actions/checkout@master - name: Archive Release uses: thedoctor0/zip-release@master with: type: 'zip' - filename: ${{ format('CAFE3_{0}.zip', steps.tag_version.outputs.new_tag) }} + filename: ${{ format('CAFE3_{0}.zip', steps.tag_version.outputs.tag) }} directory: ./ exclusions: '*.git*' - name: Draft Release uses: ncipollo/release-action@v1 with: - tag: ${{ steps.tag_version.outputs.new_tag }} - artifacts: ${{ format('*CAFE3_{0}.zip', steps.tag_version.outputs.new_tag) }} + tag: ${{ steps.tag_version.outputs.tag }} + artifacts: ${{ format('*CAFE3_{0}.zip', steps.tag_version.outputs.tag) }} draft: true generateReleaseNotes: true token: ${{ secrets.GITHUB_TOKEN }}