Skip to content

rbs-collection-updater #10

rbs-collection-updater

rbs-collection-updater #10

name: rbs-collection-updater
on:
schedule:
- cron: "0 0 1 * *" # Run monthly
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: ruby
bundler-cache: true
- run: bundle exec rbs collection update
- uses: actions/create-github-app-token@v2
id: app-token
with:
app-id: ${{ secrets.RUBY_GO_GEM_BOT_APP_ID }}
private-key: ${{ secrets.RUBY_GO_GEM_BOT_PRIVATE_KEY }}
- uses: peter-evans/create-pull-request@v7
with:
token: ${{ steps.app-token.outputs.token }}
committer: GitHub <[email protected]>
title: "Update rbs_collection.lock.yaml"
commit-message: "Run `bundle exe rbs collection update`"
labels: rbs-collection-updater
- name: Slack Notification
uses: act10ns/slack@v2
if: always()
continue-on-error: true
with:
status: ${{ job.status }}
webhook-url: ${{ secrets.SLACK_WEBHOOK }}