rbs-collection-updater #10
This file contains hidden or 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: 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 }} |