Mark Library Obsolete #15
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Mark Library Obsolete | |
on: | |
workflow_dispatch: | |
inputs: | |
gem: | |
description: "gem name to obsolete" | |
required: true | |
flags: | |
description: "Extra flags to pass to toys obsolete-library" | |
required: false | |
jobs: | |
ObsoleteLibrary: | |
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@b4ffde65f46336ab88eb53be808477a3936bae11 # 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: Obsolete-library | |
run: | | |
toys obsolete-library -v --fork ${{ github.event.inputs.flags }} ${{ github.event.inputs.gem }} |