Skip to content

Commit d57be88

Browse files
mattcreasertjleing
andcommitted
chore: Fix rollback workflow file (#2705)
Co-authored-by: Thomas Leing <[email protected]>
1 parent 528bbe7 commit d57be88

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/rollback_release.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ on:
1111
required: true
1212
new_version:
1313
description: 'The new version number (e.g. 2.9.3)'
14-
14+
required: true
1515

1616

1717
jobs:
@@ -41,7 +41,7 @@ jobs:
4141
run: |
4242
git config --global user.email 41898282+github-actions[bot]@users.noreply.github.com
4343
git config --global user.name github-actions[bot]
44-
sed -i 's/POM_VERSION=${{ env.BRANCH_FROM }}/POM_VERSION=${{ env.NEW_VERSION }}/g' gradle.properties
44+
sed -i 's/VERSION_NAME=${{ env.BRANCH_FROM }}/VERSION_NAME=${{ env.NEW_VERSION }}/g' gradle.properties
4545
echo -e '## [Release ${{ env.NEW_VERSION }}](https://github.com/${{ github.repository }}/releases/tag/${{ env.NEW_TAG }})\n\nThis is a re-release of version ${{ env.BRANCH_FROM }}. Use this instead of version ${{ env.DEPRECATED_VERSION }}.\n' | cat - CHANGELOG.md > temp && mv temp CHANGELOG.md
4646
git add gradle.properties
4747
git add CHANGELOG.md
@@ -60,6 +60,6 @@ jobs:
6060
github.rest.actions.createWorkflowDispatch({
6161
owner: context.repo.owner,
6262
repo: context.repo.repo,
63-
workflow_id: 'rollback_publish.yml',
63+
workflow_id: 'publish_rollback.yml',
6464
ref: "${{ env.NEW_TAG }}",
6565
})

0 commit comments

Comments
 (0)