diff --git a/.github/workflows/ci.update-major-version-tag.yaml b/.github/workflows/ci.update-major-version-tag.yaml index 7f14ebd..b3ac9c5 100644 --- a/.github/workflows/ci.update-major-version-tag.yaml +++ b/.github/workflows/ci.update-major-version-tag.yaml @@ -27,8 +27,9 @@ jobs: fetch-depth: 0 - name: Extract major version id: version + env: + TAG_NAME: ${{ github.event.inputs.tag || github.event.release.tag_name || github.ref_name }} run: | - TAG_NAME="${{ github.event.inputs.tag || github.event.release.tag_name || github.ref_name }}" echo "Resolved tag: $TAG_NAME" if [[ ! "$TAG_NAME" =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]]; then echo "::notice::'$TAG_NAME' is not a release semver tag (vX.Y.Z); skipping major-tag update."