fix(rust): run dist formula hardening from composite #10
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Self-CI Release | |
| name: Self-CI Release | |
| # Stable release tags only. `!v*` keeps the rolling tag this workflow pushes | |
| # from re-triggering it; pre-release tags are filtered by the step guard below. | |
| on: | |
| push: | |
| tags: | |
| - '*' | |
| - '!v*' | |
| permissions: | |
| contents: read | |
| jobs: | |
| move-rolling-tag: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write # force-push the rolling major tag | |
| steps: | |
| - uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3 | |
| - name: Move rolling major tag | |
| shell: bash | |
| run: | | |
| tag="${GITHUB_REF_NAME}" | |
| if [[ ! "${tag}" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then | |
| echo "::notice::Tag '${tag}' is not a stable release (X.Y.Z) — rolling tag unchanged" | |
| exit 0 | |
| fi | |
| rolling="v${tag%%.*}" | |
| git tag -f "${rolling}" "${GITHUB_SHA}" | |
| git push -f origin "${rolling}" | |
| echo "::notice::Moved ${rolling} → ${GITHUB_SHA} (${tag})" |