diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 349d9aa..0adf08b 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -34,8 +34,8 @@ jobs: id: version run: | VERSION=$(task version) - if [[ ! "$VERSION" =~ ^v[0-9]+\.[0-9]+\.[0-9]+(-dev)?$ ]]; then - echo "Invalid version format in VERSION file: $VERSION" + if [[ ! "$VERSION" =~ ^v[0-9]+\.[0-9]+\.[0-9]+(-dev(-[0-9a-f]*)?)?$ ]]; then + echo "Invalid version format: $VERSION" exit 1 fi echo "New version: $VERSION" diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index f21a4c3..1dd8c0b 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -30,8 +30,8 @@ jobs: id: version run: | VERSION=$(task version) - if [[ ! "$VERSION" =~ ^v[0-9]+\.[0-9]+\.[0-9]+(-dev)?$ ]]; then - echo "Invalid version format in VERSION file: $VERSION" + if [[ ! "$VERSION" =~ ^v[0-9]+\.[0-9]+\.[0-9]+(-dev(-[0-9a-f]*)?)?$ ]]; then + echo "Invalid version format: $VERSION" exit 1 fi echo "New version: $VERSION"