Skip to content

Commit

Permalink
ci: use create pr action
Browse files Browse the repository at this point in the history
  • Loading branch information
n8maninger committed Nov 17, 2024
1 parent 303befc commit 547c205
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 23 deletions.
16 changes: 11 additions & 5 deletions .github/workflows/prepare-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
18 changes: 0 additions & 18 deletions knope.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down

0 comments on commit 547c205

Please sign in to comment.