Skip to content

Commit 97fac07

Browse files
authored
Merge pull request #43 from sue445/rbs-collection-updater
ci: Migrate rbs-collection-updater to sue445/workflows
2 parents 7c95c1f + 0094147 commit 97fac07

File tree

1 file changed

+7
-37
lines changed

1 file changed

+7
-37
lines changed

.github/workflows/rbs-collection-updater.yml

Lines changed: 7 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -7,40 +7,10 @@ on:
77

88
jobs:
99
build:
10-
runs-on: ubuntu-latest
11-
12-
steps:
13-
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
14-
15-
- uses: ruby/setup-ruby@8aeb6ff8030dd539317f8e1769a044873b56ea71 # v1.268.0
16-
with:
17-
ruby-version: ruby
18-
bundler-cache: true
19-
20-
- run: bundle exec rbs collection update
21-
- run: bundle exec rbs collection install
22-
23-
- uses: actions/create-github-app-token@7e473efe3cb98aa54f8d4bac15400b15fad77d94 # v2.2.0
24-
id: app-token
25-
with:
26-
app-id: ${{ secrets.GH_APP_ID }}
27-
private-key: ${{ secrets.GH_APP_PRIVATE_KEY }}
28-
29-
- uses: peter-evans/create-pull-request@84ae59a2cdc2258d6fa0732dd66352dddae2a412 # v7.0.9
30-
with:
31-
token: ${{ steps.app-token.outputs.token }}
32-
committer: GitHub <[email protected]>
33-
title: "Update rbs_collection.lock.yaml"
34-
commit-message: "Run `bundle exe rbs collection update && bundle exec rbs collection install`"
35-
labels: rbs-collection-updater
36-
branch: rbs-collection-updater
37-
branch-suffix: short-commit-hash
38-
assignees: "sue445"
39-
40-
- name: Slack Notification
41-
uses: act10ns/slack@cfcc30955fe9377f4f55e1079e5419ee1014269f # v2
42-
if: always()
43-
continue-on-error: true
44-
with:
45-
status: ${{ job.status }}
46-
webhook-url: ${{ secrets.SLACK_WEBHOOK }}
10+
uses: sue445/workflows/.github/workflows/rbs-collection-updater.yml@main
11+
with:
12+
assignees: sue445
13+
secrets:
14+
app-id: ${{ secrets.GH_APP_ID }}
15+
private-key: ${{ secrets.GH_APP_PRIVATE_KEY }}
16+
slack-webhook: ${{ secrets.SLACK_WEBHOOK }}

0 commit comments

Comments
 (0)