Skip to content

bugfix/fix-some-naming-issues #14

bugfix/fix-some-naming-issues

bugfix/fix-some-naming-issues #14

Workflow file for this run

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 }}