mirror of
https://github.com/gotson/komga.git
synced 2025-12-06 00:25:08 +01:00
build: use .svu.yml configuration file
This commit is contained in:
parent
9563310c71
commit
42223b7521
2 changed files with 7 additions and 4 deletions
8
.github/workflows/release.yml
vendored
8
.github/workflows/release.yml
vendored
|
|
@ -53,14 +53,14 @@ jobs:
|
|||
run: brew install caarlos0/tap/svu
|
||||
- name: Compute next version for release
|
||||
run: |
|
||||
echo "VERSION_NEXT=`svu --tag.pattern="[0-9]*" --tag.prefix '' ${{ inputs.bump }}`" | tee -a $GITHUB_ENV
|
||||
echo "VERSION_NEXT_SUFFIX=`svu --tag.pattern="[0-9]*" --tag.prefix '' ${{ inputs.bump }}`" | tee -a $GITHUB_ENV
|
||||
echo "VERSION_NEXT=`svu ${{ inputs.bump }}`" | tee -a $GITHUB_ENV
|
||||
echo "VERSION_NEXT_SUFFIX=`svu ${{ inputs.bump }}`" | tee -a $GITHUB_ENV
|
||||
- name: Set Versions
|
||||
id: versions
|
||||
run: |
|
||||
echo "version_current=`svu --tag.pattern="[0-9]*" --tag.prefix '' current`" >> $GITHUB_OUTPUT
|
||||
echo "version_current=`svu current`" >> $GITHUB_OUTPUT
|
||||
echo "version_next=${{ env.VERSION_NEXT_SUFFIX }}" >> $GITHUB_OUTPUT
|
||||
[[ `svu --tag.pattern="[0-9]*" --tag.prefix '' current` != ${{ env.VERSION_NEXT }} ]] && echo "should_release=true" >> $GITHUB_OUTPUT || echo
|
||||
[[ `svu current` != ${{ env.VERSION_NEXT }} ]] && echo "should_release=true" >> $GITHUB_OUTPUT || echo
|
||||
|
||||
release:
|
||||
name: Release
|
||||
|
|
|
|||
3
.svu.yml
Normal file
3
.svu.yml
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
tag:
|
||||
prefix: ''
|
||||
pattern: '[0-9]*'
|
||||
Loading…
Reference in a new issue