Skip to content

Commit c8a69ed

Browse files
committed
Add a workflow to sync commits to ruby/ruby
1 parent 0e87593 commit c8a69ed

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/sync-ruby.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Sync ruby
2+
on:
3+
push:
4+
branches: [master]
5+
jobs:
6+
sync:
7+
name: Sync ruby
8+
runs-on: ubuntu-latest
9+
if: ${{ github.repository_owner == 'ruby' }}
10+
steps:
11+
- uses: actions/checkout@v5
12+
13+
- name: Create GitHub App token
14+
id: app-token
15+
uses: actions/create-github-app-token@v2
16+
with:
17+
app-id: 2060836
18+
private-key: ${{ secrets.RUBY_SYNC_DEFAULT_GEMS_PRIVATE_KEY }}
19+
owner: ruby
20+
repositories: ruby
21+
22+
- name: Sync to ruby/ruby
23+
uses: convictional/[email protected]
24+
with:
25+
owner: ruby
26+
repo: ruby
27+
workflow_file_name: sync_default_gems.yml
28+
github_token: ${{ steps.app-token.outputs.token }}
29+
ref: master
30+
client_payload: |
31+
{"gem":"${{ github.event.repository.name }}","before":"${{ github.event.before }}","after":"${{ github.event.after }}"}
32+
propagate_failure: true
33+
wait_interval: 10

0 commit comments

Comments
 (0)