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