forked from googleapis/google-cloud-ruby
-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (31 loc) · 904 Bytes
/
update-pr.yml
File metadata and controls
33 lines (31 loc) · 904 Bytes
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
name: Update Pull Request
on:
workflow_dispatch:
inputs:
pr:
description: "Pull request number"
required: true
options:
description: "Options"
required: false
jobs:
OwlBot:
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@v3
- name: Install Ruby 3.0
uses: ruby/setup-ruby@v1
with:
ruby-version: "3.0"
- name: Install tools
run: |
git config --global user.email "70984784+yoshi-code-bot@users.noreply.github.com"
git config --global user.name "Yoshi Code Bot"
gem install --no-document toys
- name: Update PR
run: |
toys update-pr -v ${{ github.event.inputs.options }} ${{ github.event.inputs.pr }}