Skip to content

Commit a554c87

Browse files
committed
fix: update release workfflow not to push rather create a pr with changes
1 parent 174f349 commit a554c87

File tree

1 file changed

+19
-2
lines changed

1 file changed

+19
-2
lines changed

.github/workflows/release.yml

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ jobs:
3939
create-summary: 'true'
4040
pre-release: 'true'
4141
pre-release-identifier: 'alpha'
42-
42+
git-push: 'false'
43+
4344
- name: Update version.txt
4445
if: ${{ steps.changelog.outputs.skipped == 'false' }}
4546
run: echo "${{ steps.changelog.outputs.tag }}" > version.txt
@@ -63,4 +64,20 @@ jobs:
6364
release_name: ${{ steps.changelog.outputs.tag }}
6465
body: ${{ steps.changelog.outputs.clean_changelog }}
6566
draft: false
66-
prerelease: true
67+
prerelease: true
68+
69+
- name: Create Pull Request
70+
if: ${{ steps.changelog.outputs.skipped == 'false' }}
71+
uses: peter-evans/create-pull-request@v5
72+
with:
73+
token: ${{ secrets.GITHUB_TOKEN }}
74+
commit-message: 'chore(release): update release'
75+
title: 'chore(release): update release'
76+
body: |
77+
This PR updates the release with the latest changes.
78+
79+
Generated automatically by the release workflow.
80+
branch: 'chore/update-release'
81+
delete-branch: true
82+
base: 'master'
83+

0 commit comments

Comments
 (0)