Use test tags in rollback-release.yml workflow

This commit is contained in:
Michael B. Gale
2026-09-29 17:03:57 +01:00
parent 415d925fee
commit cd1a7c16f0

View File

@@ -107,8 +107,10 @@ jobs:
# We usually expect to checkout `inputs.rollback-tag` (required for `workflow_dispatch`), # We usually expect to checkout `inputs.rollback-tag` (required for `workflow_dispatch`),
# but use `v0.0.0` for testing. # but use `v0.0.0` for testing.
ROLLBACK_TAG: ${{ inputs.rollback-tag || 'v0.0.0' }} ROLLBACK_TAG: ${{ inputs.rollback-tag || 'v0.0.0' }}
RELEASE_TAG: ${{ needs.prepare.outputs.version }} # Use `needs.prepare.outputs.version` for actual runs and `v0.0.1` for testing.
MAJOR_VERSION_TAG: ${{ needs.prepare.outputs.major_version }} RELEASE_TAG: ${{ case(github.event_name == 'workflow_dispatch', needs.prepare.outputs.version, 'v0.0.1') }}
# Use `needs.prepare.outputs.major_version` for actual runs and `v0` for testing.
MAJOR_VERSION_TAG: ${{ case(github.event_name == 'workflow_dispatch', needs.prepare.outputs.major_version, 'v0') }}
run: | run: |
git checkout "refs/tags/${ROLLBACK_TAG}" git checkout "refs/tags/${ROLLBACK_TAG}"
git tag --annotate "${RELEASE_TAG}" --message "${RELEASE_TAG}" git tag --annotate "${RELEASE_TAG}" --message "${RELEASE_TAG}"