Skip to content

Commit

Permalink
manual github workflow for patch
Browse files Browse the repository at this point in the history
  • Loading branch information
thesuhas committed Oct 1, 2024
1 parent ded87ff commit f1278d8
Showing 1 changed file with 7 additions and 12 deletions.
19 changes: 7 additions & 12 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
name: Release
name: Release Patch

on:
push:
tags:
- "release-v*"
workflow_dispatch:

env:
Expand Down Expand Up @@ -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

Expand All @@ -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
- name: Raise PR with changes
uses: peter-evans/create-pull-request@v7
with:
branch: 'release/${{ bump.new_version }}'

0 comments on commit f1278d8

Please sign in to comment.