diff --git a/.github/workflows/rs-release.yml b/.github/workflows/rs-release.yml index 95c94a11..52043179 100644 --- a/.github/workflows/rs-release.yml +++ b/.github/workflows/rs-release.yml @@ -1,4 +1,4 @@ -# This workflow is triggered by a tag that matches the pattern rs/v*-rc. +# This workflow is triggered by a tag that matches the pattern rs/v*-pin. # Essentially it does the following: # - gathers release info including its version using created tag # - applies version to the workspace and updates crates dependencies @@ -13,7 +13,7 @@ name: '[rs] Release' on: push: tags: - - 'rs/v*-rc' + - 'rs/v*-pin' env: # see https://api.github.com/users/github-actions%5Bbot%5D @@ -53,15 +53,15 @@ jobs: - name: Extract Release Info id: release_info run: | - RC_TAG=${GITHUB_REF#refs/tags/} - VERSION=${RC_TAG#rs/v} - VERSION="${VERSION%-rc}" - if [[ ! $VERSION =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then + PIN_TAG=${GITHUB_REF#refs/tags/} + VERSION=${PIN_TAG#rs/v} + VERSION="${VERSION%-pin}" + if [[ ! $VERSION =~ ^[0-9]+\.[0-9]+\.[0-9]+(-[a-z]+\.[0-9]+)?$ ]]; then echo "'$VERSION' is not a valid semver version" exit 1 fi - echo "RC Tag: $RC_TAG" - echo "rc_tag=$RC_TAG" >> $GITHUB_OUTPUT + echo "Pin Tag: $PIN_TAG" + echo "pin_tag=$PIN_TAG" >> $GITHUB_OUTPUT echo "Version: $VERSION" echo "version=$VERSION" >> $GITHUB_OUTPUT @@ -84,7 +84,7 @@ jobs: git add Cargo.lock git commit -m "build(rs): update version to v${{ steps.release_info.outputs.version }}" git push origin "$RC_BRANCH" - git push origin --delete "${{ steps.release_info.outputs.rc_tag }}" + git push origin --delete "${{ steps.release_info.outputs.pin_tag }}" echo "branch=$RC_BRANCH" >> $GITHUB_OUTPUT ws_tests: