diff --git a/.github/workflows/prepare-release.yml b/.github/workflows/prepare-release.yml index 802fc35..9d910b0 100644 --- a/.github/workflows/prepare-release.yml +++ b/.github/workflows/prepare-release.yml @@ -22,8 +22,14 @@ jobs: run: | rustup update stable cargo install knope - git config --global user.name ${{ github.actor }} - git config user.email ${{ github.actor_id }}+${{ github.actor }}@users.noreply.github.com - - run: knope prepare-release --verbose - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Prepare Release + run: knope prepare-release --verbose + - name: Create Pull Request + uses: peter-evans/create-pull-request@v7 + with: + delete-branch: true + commit-message: "chore: prepare releases" + title: Release Versions + body: | + This PR was automatically created to prepare the release versions. Close the PR when you are ready to release. See the changelog for more details. + branch: release diff --git a/knope.toml b/knope.toml index 3ddb986..17e3858 100644 --- a/knope.toml +++ b/knope.toml @@ -16,24 +16,6 @@ command = "git switch -c release" [[workflows.steps]] type = "PrepareRelease" -[[workflows.steps]] -type = "Command" -command = "git commit -m \"chore: prepare releases\"" - -[[workflows.steps]] -type = "Command" -command = "git push --force --set-upstream origin release" - -[[workflows.steps]] -type = "CreatePullRequest" -base = "master" - -[workflows.steps.title] -template = "chore: prepare releases" - -[workflows.steps.body] -template = "This PR was created automatically. Merging it will create a new release. See changelogs for details." - [[workflows]] name = "release"