.github/workflows/version.yml
name: Bump version
on:
workflow_dispatch:
inputs:
semver:
description: Bump
required: true
type: choice
options:
- major
- minor
- patch
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4.1.6
with:
fetch-depth: 0
ssh-key: ${{ secrets.RELEASE_SSH_KEY }}
- name: Set up Ruby 3.3
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.3
bundler-cache: true
- name: Update version
run: |
git config user.name github-actions
git config user.email github-actions@github.com
bundle config unset deployment
bundle exec rake "version[${{ inputs.semver }}]"