You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
GitHub Action
bump-request
v0.1.0
Custom action to create a pull request that bumps version.
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.
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 to change to.
- required
- e.g.
1.2.3
Additional options for gh pr create
command.
- optional
- e.g.
--draft