fix: remove expected dot after v in rust-v tag name (#742)
I think this extra dot was not intentional, but I'm not sure. Certainly
this comment suggests it should not be there:
85999d7277/.github/workflows/rust-release.yml (L4)
This commit is contained in:
6
.github/workflows/rust-release.yml
vendored
6
.github/workflows/rust-release.yml
vendored
@@ -9,14 +9,14 @@ name: rust-release
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
tags:
|
tags:
|
||||||
- "rust-v.*.*.*"
|
- "rust-v*.*.*"
|
||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
group: ${{ github.workflow }}
|
group: ${{ github.workflow }}
|
||||||
cancel-in-progress: true
|
cancel-in-progress: true
|
||||||
|
|
||||||
env:
|
env:
|
||||||
TAG_REGEX: '^rust-v\.[0-9]+\.[0-9]+\.[0-9]+$'
|
TAG_REGEX: '^rust-v[0-9]+\.[0-9]+\.[0-9]+$'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
tag-check:
|
tag-check:
|
||||||
@@ -37,7 +37,7 @@ jobs:
|
|||||||
|| { echo "❌ Tag '${GITHUB_REF_NAME}' != ${TAG_REGEX}"; exit 1; }
|
|| { echo "❌ Tag '${GITHUB_REF_NAME}' != ${TAG_REGEX}"; exit 1; }
|
||||||
|
|
||||||
# 2. Extract versions
|
# 2. Extract versions
|
||||||
tag_ver="${GITHUB_REF_NAME#rust-v.}"
|
tag_ver="${GITHUB_REF_NAME#rust-v}"
|
||||||
cargo_ver="$(grep -m1 '^version' codex-rs/Cargo.toml \
|
cargo_ver="$(grep -m1 '^version' codex-rs/Cargo.toml \
|
||||||
| sed -E 's/version *= *"([^"]+)".*/\1/')"
|
| sed -E 's/version *= *"([^"]+)".*/\1/')"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user