mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-10 16:48:31 +02:00
standardize version regex in release pipeline (#1124)
This commit is contained in:
parent
3dec22651e
commit
2e9e857b7b
2 changed files with 3 additions and 3 deletions
2
.github/workflows/changelog.yaml
vendored
2
.github/workflows/changelog.yaml
vendored
|
@ -35,7 +35,7 @@ jobs:
|
||||||
if [[ $GITHUB_REF =~ ^refs/tags/ ]]; then
|
if [[ $GITHUB_REF =~ ^refs/tags/ ]]; then
|
||||||
# This is a tag build (i.e. a release)
|
# This is a tag build (i.e. a release)
|
||||||
echo '::debug::Release build'
|
echo '::debug::Release build'
|
||||||
if [[ ! $BRANCH =~ ^v[0-9]+(\.[0-9]+){1,2}(-(alpha|beta)(\.[0-9]+)?)?$ ]]; then
|
if [[ ! $BRANCH =~ ^v[0-9]+(\.[0-9]+){1,2}(-(alpha|beta)([0-9]+)?)?$ ]]; then
|
||||||
echo "::error::Invalid tag format: ${BRANCH}"
|
echo "::error::Invalid tag format: ${BRANCH}"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
4
.github/workflows/release.yaml
vendored
4
.github/workflows/release.yaml
vendored
|
@ -3,7 +3,7 @@ on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
inputs:
|
inputs:
|
||||||
version:
|
version:
|
||||||
description: 'Version (e.g. v2.5 or v2.5.1-beta)'
|
description: 'Version (e.g. v2.5, v2.5.1-beta, v2.6-beta2)'
|
||||||
required: true
|
required: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
@ -15,7 +15,7 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
JRNL_VERSION="${{ github.event.inputs.version }}"
|
JRNL_VERSION="${{ github.event.inputs.version }}"
|
||||||
echo "::debug::version: $JRNL_VERSION"
|
echo "::debug::version: $JRNL_VERSION"
|
||||||
if [[ ! $JRNL_VERSION =~ ^v[0-9]+(\.[0-9]+){1,2}(-(alpha|beta)(\.[0-9]+)?)?$ ]]; then
|
if [[ ! $JRNL_VERSION =~ ^v[0-9]+(\.[0-9]+){1,2}(-(alpha|beta)([0-9]+)?)?$ ]]; then
|
||||||
echo
|
echo
|
||||||
echo "::error::Bad version"
|
echo "::error::Bad version"
|
||||||
echo
|
echo
|
||||||
|
|
Loading…
Add table
Reference in a new issue