Skip to content

Commit b4cbb73

Browse files
committed
fix(workflow): 🐛 updated release workflows
enabled the manual trigger of the workflows
1 parent 1354518 commit b4cbb73

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

.github/workflows/pre-release.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
name: Deploy Pre-release to Maven Central
44

55
on:
6+
workflow_dispatch:
67
pull_request:
78
branches:
89
- staging
@@ -46,7 +47,7 @@ jobs:
4647
id: old_version
4748
run: |
4849
export MVN_OLD_VERSION=$(git describe --tags $(git rev-list --tags --max-count=1))
49-
echo "previous_version=$MVN_OLD_VERSION" >> $GITHUB_OUTPUT
50+
echo "previous_version=${MVN_OLD_VERSION:1}" >> $GITHUB_OUTPUT
5051
5152
- name: Update pre-release version
5253
run: yarn prerelease
@@ -60,7 +61,7 @@ jobs:
6061
- name: Generate Change log
6162
if: steps.version.outputs.version != null
6263
run: |
63-
yarn changelog --from ${{ steps.old_version.outputs.previous_version }} --next-version v${{ steps.version.outputs.version }} > CHANGELOG.md
64+
yarn changelog --from v${{ steps.old_version.outputs.previous_version }} --next-version v${{ steps.version.outputs.version }} > CHANGELOG.md
6465
6566
- name: Upload updated version related files to artifacts
6667
uses: actions/upload-artifact@v3

.github/workflows/release.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
name: Deploy Release to GitHub and Maven Central
44

55
on:
6+
workflow_dispatch:
67
pull_request:
78
branches:
89
- main
@@ -47,7 +48,7 @@ jobs:
4748
id: old_version
4849
run: |
4950
export MVN_OLD_VERSION=$(git describe --tags $(git rev-list --tags --max-count=1))
50-
echo "previous_version=$MVN_OLD_VERSION" >> $GITHUB_OUTPUT
51+
echo "previous_version=${MVN_OLD_VERSION:1}" >> $GITHUB_OUTPUT
5152
5253
- name: Update release version
5354
run: yarn release
@@ -61,7 +62,7 @@ jobs:
6162
- name: Generate Change log
6263
if: steps.version.outputs.version != null
6364
run: |
64-
yarn changelog --from ${{ steps.old_version.outputs.previous_version }} --next-version v${{ steps.version.outputs.version }} > CHANGELOG.md
65+
yarn changelog --from v${{ steps.old_version.outputs.previous_version }} --next-version v${{ steps.version.outputs.version }} > CHANGELOG.md
6566
6667
- name: Upload updated version related files to artifacts
6768
uses: actions/upload-artifact@v3

0 commit comments

Comments
 (0)