File tree Expand file tree Collapse file tree 2 files changed +42
-0
lines changed Expand file tree Collapse file tree 2 files changed +42
-0
lines changed Original file line number Diff line number Diff line change 14
14
- " .github/release.yml"
15
15
- " .github/workflows/labeler.yml"
16
16
- " .github/workflows/patch_for_go_gem.yml"
17
+ - " .github/workflows/rbs-collection-updater.yml"
17
18
- " _benchmark/**"
18
19
19
20
env :
Original file line number Diff line number Diff line change
1
+ name : rbs-collection-updater
2
+
3
+ on :
4
+ schedule :
5
+ - cron : " 0 0 1 * *" # Run monthly
6
+ workflow_dispatch :
7
+
8
+ jobs :
9
+ build :
10
+ runs-on : ubuntu-latest
11
+
12
+ steps :
13
+ - uses : actions/checkout@v4
14
+
15
+ - uses : ruby/setup-ruby@v1
16
+ with :
17
+ ruby-version : ruby
18
+ bundler-cache : true
19
+
20
+ - run : bundle exec rbs collection update
21
+
22
+ - uses : actions/create-github-app-token@v1
23
+ id : app-token
24
+ with :
25
+ app-id : ${{ secrets.GH_APP_ID }}
26
+ private-key : ${{ secrets.GH_APP_PRIVATE_KEY }}
27
+
28
+ - uses : peter-evans/create-pull-request@v7
29
+ with :
30
+ token : ${{ steps.app-token.outputs.token }}
31
+ committer : GitHub <noreply@github.com>
32
+ title : " Update rbs_collection.lock.yaml"
33
+ commit-message : " Run `bundle exe rbs collection update`"
34
+
35
+ - name : Slack Notification
36
+ uses : act10ns/slack@v2
37
+ if : always()
38
+ continue-on-error : true
39
+ with :
40
+ status : ${{ job.status }}
41
+ webhook-url : ${{ secrets.SLACK_WEBHOOK }}
You can’t perform that action at this time.
0 commit comments