Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

manual github workflow for patch #195

Merged
merged 1 commit into from
Oct 1, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 }}'