Skip to content

Commit

Permalink
Add rbs-collection-updater
Browse files Browse the repository at this point in the history
  • Loading branch information
sue445 committed Dec 11, 2023
1 parent ca52e2d commit a9ea3f9
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/rbs-collection-updater.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
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 exe rbs collection update

- uses: actions/create-github-app-token@v1
id: app-token
with:
app-id: ${{ secrets.GH_APP_ID }}
private-key: ${{ secrets.GH_APP_PRIVATE_KEY }}

- uses: peter-evans/create-pull-request@v3
with:
token: ${{ steps.app-token.outputs.token }}
committer: GitHub <noreply@github.com>
title: "Update rbs_collection.lock.yaml"
body: |
bundle exe rbs collection update
- name: Slack Notification
uses: act10ns/slack@v2
if: always()
continue-on-error: true
with:
status: ${{ job.status }}
webhook-url: ${{ secrets.SLACK_WEBHOOK }}

0 comments on commit a9ea3f9

Please sign in to comment.