diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index b1406fc..ccb26ab 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -33,7 +33,7 @@ jobs: id: version run: | VERSION=$(task version) - if [[ ! "$VERSION" =~ ^v[0-9]+\.[0-9]+\.[0-9]+(-dev)?$ ]]; then + if [[ ! "$VERSION" =~ ^v[0-9]+\.[0-9]+\.[0-9]+(-dev(-[0-9a-f]*)?)?$ ]]; then echo "Invalid version format in VERSION file: $VERSION" exit 1 fi diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index ced19b5..402f61b 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -30,7 +30,7 @@ jobs: id: version run: | VERSION=$(task version) - if [[ ! "$VERSION" =~ ^v[0-9]+\.[0-9]+\.[0-9]+(-dev)?$ ]]; then + if [[ ! "$VERSION" =~ ^v[0-9]+\.[0-9]+\.[0-9]+(-dev(-[0-9a-f]*)?)?$ ]]; then echo "Invalid version format in VERSION file: $VERSION" exit 1 fi