-
Notifications
You must be signed in to change notification settings - Fork 567
40 lines (39 loc) · 1.18 KB
/
bump-version.yml
File metadata and controls
40 lines (39 loc) · 1.18 KB
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
38
39
40
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 }}
steps:
- name: Checkout repo
uses: actions/checkout@v6
- name: Install Ruby 3.3
uses: ruby/setup-ruby@v1
with:
ruby-version: "3.3"
- 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}
env:
GITHUB_EVENT_INPUTS_VERSION: ${{ github.event.inputs.version }}
GITHUB_EVENT_INPUTS_ARGS: ${{ github.event.inputs.args }}
GITHUB_EVENT_INPUTS_GEMS: ${{ github.event.inputs.gems }}