bugfix/fix-some-naming-issues #14
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release | |
on: | |
pull_request: | |
branches: | |
- 'main' | |
types: | |
- closed | |
jobs: | |
version-update: | |
#if: ${{ github.event.pull_request.merged == true }} | |
name: Update Version | |
runs-on: ubuntu-latest | |
steps: | |
- name: Clone Repo | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Get Next Version | |
id: get_next_version | |
uses: thenativeweb/get-next-version@main | |
with: | |
prefix: 'v' # optional, default ist '' | |
- name: Create New Version Tag | |
if: ${{ steps.get_next_version.outputs.hasNextVersion == 'true' }} | |
run: | | |
NEXT_VERSION=${{ steps.get_next_version.outputs.version }} | |
git tag $NEXT_VERSION | |
git push origin $NEXT_VERSION | |
- name: Create Release | |
uses: elgohr/Github-Release-Action@v5 | |
env: | |
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
title: ${{ steps.get_next_version.outputs.version }} | |
tag: ${{ steps.get_next_version.outputs.version }} | |