From f1278d80131a6facb7937c55cc7f42ffb1cf929c Mon Sep 17 00:00:00 2001 From: Suhas Thalanki Date: Tue, 1 Oct 2024 15:49:49 -0400 Subject: [PATCH] manual github workflow for patch --- .github/workflows/release.yml | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index daf6a18..aab0232 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,9 +1,6 @@ -name: Release +name: Release Patch on: - push: - tags: - - "release-v*" workflow_dispatch: env: @@ -42,7 +39,7 @@ jobs: needs: [ rustfmt, build_and_test ] runs-on: ubuntu-latest permissions: - # Gives write permisison to commit toml changes + # Gives write permission to commit toml changes contents: write pull-requests: write @@ -55,14 +52,12 @@ jobs: fetch-depth: 0 - name: Bump Version + id: bump uses: tj-actions/cargo-bump@v3 with: release_type: 'patch' - - name: Push changes to main - run: | - git config user.name "thesuhas" - git config user.email "suhastvs@gmail.com" - git add . - git commit -m "Version Bump" - git push --force origin HEAD:main \ No newline at end of file + - name: Raise PR with changes + uses: peter-evans/create-pull-request@v7 + with: + branch: 'release/${{ bump.new_version }}' \ No newline at end of file