-
Notifications
You must be signed in to change notification settings - Fork 553
37 lines (36 loc) · 1.03 KB
/
bump-version.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Bump-Version
on:
workflow_dispatch:
inputs:
gems:
description: "Gems to bump (required)"
required: true
version:
description: "Version to bump to (required)"
required: true
args:
description: "Extra command line arguments"
required: false
jobs:
bump-version:
if: ${{ github.repository == 'googleapis/google-cloud-ruby' }}
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ secrets.YOSHI_CODE_BOT_TOKEN }}
APPROVAL_GITHUB_TOKEN: ${{secrets.YOSHI_APPROVER_TOKEN}}
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Install Ruby 3.2
uses: ruby/setup-ruby@v1
with:
ruby-version: "3.2"
- name: Install tools
run: |
gem install --no-document toys
- name: execute
run: |
toys bump-version -v --fork \
--version "${{ github.event.inputs.version }}" \
${{ github.event.inputs.args }} -- \
${{ github.event.inputs.gems }}