Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
git-pull-request

GitHub Action

bump-request

v0.1.0

bump-request

git-pull-request

bump-request

Create a pull request that bumps version

Installation

Copy and paste the following snippet into your .yml file.

              

- name: bump-request

uses: r7kamura/bump-request@v0.1.0

Learn more about this action in r7kamura/bump-request

Choose a version

bump-request

Custom action to create a pull request that bumps version.

Usage

Create a workflow file as follows:

# .github/workflows/bump-request.yml
name: bump-request

on:
  workflow_dispatch:
    inputs:
      version:
        description: Version to change to.
        required: true
        type: string

jobs:
  run:
    runs-on: ubuntu-latest
    steps:
      - uses: r7kamura/bump-request@v0
        with:
          command: |
            npm version --no-git-commit-hooks --no-git-tag-version "${{ inputs.version }}"
          version: ${{ inputs.version }}

Now you can run it manually via actions page:

or if you want to do it from CLI, use GitHub CLI like this:

gh workflow run bump-request --field version=1.2.3

After the action is complete, a new pull request is created.

Inputs

command

Shell command for modifying files that contain versions such as package.json, Catgo.toml, etc.

  • required

NPM package example:

command: |
  npm version --no-git-commit-hooks --no-git-tag-version "${{ inputs.version }}"

Ruby gem example:

command: |
  sed -i -r 's/([0-9]+\.[0-9]+\.[0-9]+)/${{ inputs.version }}/' lib/my_ruby_gem/version.rb
  bundle install

version

Version to change to.

  • required
  • e.g. 1.2.3

gh_pr_create_options

Additional options for gh pr create command.

  • optional
  • e.g. --draft