forked from googleapis/ruby-cloud-env
38 lines (37 loc) · 1.14 KB
/
release-please.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
38
name: Release-Please
on:
schedule:
- cron: '17 8 * * *'
workflow_dispatch:
inputs:
gem:
description: "Name of single gem to release. Leave blank to check all gems."
required: false
args:
description: "Extra command line arguments."
required: false
jobs:
release-please:
if: ${{ github.repository == 'googleapis/ruby-cloud-env' }}
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ secrets.YOSHI_CODE_BOT_TOKEN }}
RELEASE_PLEASE_DISABLE: ${{ secrets.RELEASE_PLEASE_DISABLE }}
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Install Ruby 2.7
uses: ruby/setup-ruby@v1
with:
ruby-version: "2.7"
- name: Install NodeJS 12.x
uses: actions/setup-node@v3
with:
node-version: "12.x"
- name: Install tools
run: "gem install --no-document toys && npm install release-please"
- name: execute
run: |
toys release please -v --fork \
--github-event-name=${{ github.event_name }} \
${{ github.event.inputs.args }} -- ${{ github.event.inputs.gem }}