forked from googleapis/google-cloud-ruby
-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (32 loc) · 950 Bytes
/
delete-library.yml
File metadata and controls
34 lines (32 loc) · 950 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
34
name: Delete a library
on:
workflow_dispatch:
inputs:
gem:
description: "name of gem to remove"
required: true
flags:
description: "Extra flags to pass to toys delete-library"
required: false
jobs:
DeleteLibrary:
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.4
uses: ruby/setup-ruby@v1
with:
ruby-version: "3.4"
- name: Install tools
run: |
gem install --no-document toys
- name: Delete-library
run: |
toys delete-library -v --fork ${GITHUB_EVENT_INPUTS_FLAGS} ${GITHUB_EVENT_INPUTS_GEM}
env:
GITHUB_EVENT_INPUTS_FLAGS: ${{ github.event.inputs.flags }}
GITHUB_EVENT_INPUTS_GEM: ${{ github.event.inputs.gem }}