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

feat: add bump action #221

Merged
merged 4 commits into from
Nov 10, 2022
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
14 changes: 10 additions & 4 deletions .github/workflows/bump.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,18 +36,24 @@ jobs:
- name: Bump Cargo.lock
run: cargo build

- name: Get latest version
id: get_version
run: echo ::set-output name=VERSION::$(cargo pkgid | cut -d# -f2)

- name: Create bump PR
uses: peter-evans/create-pull-request@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: 'chore: bump version to ${{ github.event.inputs.version }}'
title: 'chore: bump version to ${{ github.event.inputs.version }}'
commit-message: 'chore: bump version to ${{ steps.get_version.outputs.VERSION }}'
title: 'chore: bump version to ${{ steps.get_version.outputs.VERSION }}'
body: |
Bump version to ${{ github.event.inputs.version }}
Bump version to ${{ steps.get_version.outputs.VERSION }}

- [x] Bump version in Cargo.toml
- [x] Bump version in Cargo.lock
committer: GitHub <noreply@github.com>
author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>
branch: bump/${{ github.event.inputs.version }}
branch: bump/${{ steps.get_version.outputs.VERSION }}
base: main
delete-branch: true
labels: ':parrot: release'