From e545de1a20398645a6b1748fb1b2be5c70fe7c13 Mon Sep 17 00:00:00 2001 From: KeisukeYamashita <19yamashita15@gmail.com> Date: Fri, 16 Feb 2024 22:35:43 +0100 Subject: [PATCH] feat(.github): add bump workflow Signed-off-by: KeisukeYamashita <19yamashita15@gmail.com> --- .github/workflows/bump.yaml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/bump.yaml diff --git a/.github/workflows/bump.yaml b/.github/workflows/bump.yaml new file mode 100644 index 0000000..d0631d0 --- /dev/null +++ b/.github/workflows/bump.yaml @@ -0,0 +1,25 @@ +name: Bump +on: + release: + types: + - published + +permissions: + contents: write # To checkout and create PRs + pull-requests: write # To comment to PRs + +jobs: + bump: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - id: bump + uses: tj-actions/cargo-bump@v2 + + - uses: peter-evans/create-pull-request@v6 + with: + author: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> + branch: "bump-${{ steps.bump.outputs.new_version }}" + commit-message: "bump(cli): bump version to ${{ steps.bump.outputs.new_version }}" + title: "bump(cli): bump version to ${{ steps.bump.outputs.new_version }}"