Skip to content

Commit e22f34a

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

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
@@ -48,6 +48,11 @@ jobs:
4848
- name: Configure runner for release
4949
uses: ./.github/actions/release-initialise
5050

51+
- name: Create tag for testing
52+
if: github.event_name != 'workflow_dispatch'
53+
shell: bash
54+
run: git tag v0.0.0
55+
5156
# We start by preparing the mergeback branch, mainly so that we have the updated changelog
5257
# readily available for the partial changelog that's needed for the release.
5358
- name: Prepare mergeback branch
@@ -69,7 +74,9 @@ jobs:
6974
- name: Prepare rollback changelog
7075
env:
7176
NEW_CHANGELOG: "${{ runner.temp }}/new_changelog.md"
72-
ROLLBACK_TAG: ${{ inputs.rollback-tag || needs.prepare.outputs.latest_tag }}
77+
# We usually expect to checkout `inputs.rollback-tag` (required for `workflow_dispatch`),
78+
# but use `v0.0.0` for testing.
79+
ROLLBACK_TAG: ${{ inputs.rollback-tag || 'v0.0.0' }}
7380
LATEST_TAG: ${{ needs.prepare.outputs.latest_tag }}
7481
VERSION: "${{ needs.prepare.outputs.version }}"
7582
run: |
@@ -83,8 +90,8 @@ jobs:
8390
shell: bash
8491
env:
8592
# We usually expect to checkout `inputs.rollback-tag` (required for `workflow_dispatch`),
86-
# but use `needs.prepare.outputs.latest_tag` for testing.
87-
ROLLBACK_TAG: ${{ inputs.rollback-tag || needs.prepare.outputs.latest_tag }}
93+
# but use `v0.0.0` for testing.
94+
ROLLBACK_TAG: ${{ inputs.rollback-tag || 'v0.0.0' }}
8895
RELEASE_TAG: ${{ needs.prepare.outputs.version }}
8996
MAJOR_VERSION_TAG: ${{ needs.prepare.outputs.major_version }}
9097
run: |

0 commit comments

Comments
 (0)