From 9b44de6a90410b13adc14f519482e13687187969 Mon Sep 17 00:00:00 2001 From: Drew Robinson Date: Mon, 2 Feb 2026 17:14:39 +1100 Subject: [PATCH] ci: Improve tag extraction for NIF compilation --- .github/workflows/release.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a300507..ddbfc26 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -3,7 +3,7 @@ name: Build Precompiled NIFs on: push: tags: - - "v*" + - "*.*.*" workflow_dispatch: inputs: test_only: @@ -62,19 +62,19 @@ jobs: # Check if this is a tag push or workflow_dispatch if [[ "$GITHUB_REF" == refs/tags/* ]]; then - # Extract git tag from GITHUB_REF_NAME (e.g., "v0.8.10") + # Extract git tag from GITHUB_REF_NAME (e.g., "0.9.0" or "v0.9.0") GIT_TAG="${GITHUB_REF_NAME}" # Validate that git tag matches mix.exs version - # Git tag should be v, so strip the 'v' prefix for comparison + # Strip optional 'v' prefix for comparison TAG_VERSION="${GIT_TAG#v}" if [ "$VERSION" != "$TAG_VERSION" ]; then - echo "::error::Version mismatch: mix.exs version is '$VERSION' but git tag is '$GIT_TAG' (without 'v': '$TAG_VERSION')" + echo "::error::Version mismatch: mix.exs version is '$VERSION' but git tag is '$GIT_TAG'" exit 1 fi - echo "✓ Version validation passed: mix.exs version '$VERSION' matches git tag '$GIT_TAG'" + echo "✓ Version validation passed: mix.exs version '$VERSION' matches tag '$GIT_TAG'" else # workflow_dispatch or other non-tag trigger echo "ℹ Using version from mix.exs: '$VERSION' (not a tag push)"