Skip to content

Commit c0f6445

Browse files
committed
Create a new tag for test runs, to make sure we have changes from a PR
1 parent cc39baa commit c0f6445

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

.github/workflows/rollback-release.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,11 @@ jobs:
4747
- name: Configure runner for release
4848
uses: ./.github/actions/release-initialise
4949

50+
- name: Create tag for testing
51+
if: github.event_name != 'workflow_dispatch'
52+
shell: bash
53+
run: git tag v0.0.0
54+
5055
# We start by preparing the mergeback branch, mainly so that we have the updated changelog
5156
# readily available for the partial changelog that's needed for the release.
5257
- name: Prepare mergeback branch
@@ -68,7 +73,9 @@ jobs:
6873
- name: Prepare rollback changelog
6974
env:
7075
NEW_CHANGELOG: "${{ runner.temp }}/new_changelog.md"
71-
ROLLBACK_TAG: ${{ inputs.rollback-tag || needs.prepare.outputs.latest_tag }}
76+
# We usually expect to checkout `inputs.rollback-tag` (required for `workflow_dispatch`),
77+
# but use `v0.0.0` for testing.
78+
ROLLBACK_TAG: ${{ inputs.rollback-tag || 'v0.0.0' }}
7279
LATEST_TAG: ${{ needs.prepare.outputs.latest_tag }}
7380
VERSION: "${{ needs.prepare.outputs.version }}"
7481
run: |
@@ -82,8 +89,8 @@ jobs:
8289
shell: bash
8390
env:
8491
# We usually expect to checkout `inputs.rollback-tag` (required for `workflow_dispatch`),
85-
# but use `needs.prepare.outputs.latest_tag` for testing.
86-
ROLLBACK_TAG: ${{ inputs.rollback-tag || needs.prepare.outputs.latest_tag }}
92+
# but use `v0.0.0` for testing.
93+
ROLLBACK_TAG: ${{ inputs.rollback-tag || 'v0.0.0' }}
8794
RELEASE_TAG: ${{ needs.prepare.outputs.version }}
8895
MAJOR_VERSION_TAG: ${{ needs.prepare.outputs.major_version }}
8996
run: |

0 commit comments

Comments
 (0)