From e22f34a40573d7ae48cd33ba40d710e1fa8a9936 Mon Sep 17 00:00:00 2001 From: "Michael B. Gale" Date: Fri, 15 Aug 2025 14:20:14 +0100 Subject: [PATCH] Create a new tag for test runs, to make sure we have changes from a PR --- .github/workflows/rollback-release.yml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/.github/workflows/rollback-release.yml b/.github/workflows/rollback-release.yml index 6b9a9221f..63629cb00 100644 --- a/.github/workflows/rollback-release.yml +++ b/.github/workflows/rollback-release.yml @@ -48,6 +48,11 @@ jobs: - name: Configure runner for release uses: ./.github/actions/release-initialise + - name: Create tag for testing + if: github.event_name != 'workflow_dispatch' + shell: bash + run: git tag v0.0.0 + # We start by preparing the mergeback branch, mainly so that we have the updated changelog # readily available for the partial changelog that's needed for the release. - name: Prepare mergeback branch @@ -69,7 +74,9 @@ jobs: - name: Prepare rollback changelog env: NEW_CHANGELOG: "${{ runner.temp }}/new_changelog.md" - ROLLBACK_TAG: ${{ inputs.rollback-tag || needs.prepare.outputs.latest_tag }} + # We usually expect to checkout `inputs.rollback-tag` (required for `workflow_dispatch`), + # but use `v0.0.0` for testing. + ROLLBACK_TAG: ${{ inputs.rollback-tag || 'v0.0.0' }} LATEST_TAG: ${{ needs.prepare.outputs.latest_tag }} VERSION: "${{ needs.prepare.outputs.version }}" run: | @@ -83,8 +90,8 @@ jobs: shell: bash env: # We usually expect to checkout `inputs.rollback-tag` (required for `workflow_dispatch`), - # but use `needs.prepare.outputs.latest_tag` for testing. - ROLLBACK_TAG: ${{ inputs.rollback-tag || needs.prepare.outputs.latest_tag }} + # but use `v0.0.0` for testing. + ROLLBACK_TAG: ${{ inputs.rollback-tag || 'v0.0.0' }} RELEASE_TAG: ${{ needs.prepare.outputs.version }} MAJOR_VERSION_TAG: ${{ needs.prepare.outputs.major_version }} run: |