Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 45 additions & 0 deletions .github/workflows/release-update.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Update Release

on:
push:
branches:
- "**"


jobs: # This job updates the release version
UpdateRelease:
name: Update Release
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4
- name: Get next version
id: get_next_version
uses: hugcabbage/next-version@main
with:
prefix: 'v'
mode: 3
- name: Show the next version
run: |
echo ${{ steps.get_next_version.outputs.version }}
- name: Create Release for master
if: github.ref == 'refs/heads/master'
uses: maxkomarychev/oction-create-release@v0.7.1
with:
token: ${{secrets.GITHUB_TOKEN}}
tag_name: ${{ steps.get_next_version.outputs.version }}
target_commitish: ${{github.ref}}
name: "${{github.ref}} ${{ steps.get_next_version.outputs.version }}"
body: "This Release was created through github actions"
prerelease: false
- name: Create Release for ${{github.ref}}
if: github.ref != 'refs/heads/master'
uses: maxkomarychev/oction-create-release@v0.7.1
with:
token: ${{secrets.GITHUB_TOKEN}}
tag_name: ${{ steps.get_next_version.outputs.version }}
target_commitish: ${{github.ref}}
name: "${{github.ref}} ${{ steps.get_next_version.outputs.version }}"
body: "This Release was created through github actions"
prerelease: true
Loading