Skip to content

Commit eedd311

Browse files
committed
Add a workflow to sync commits to ruby/ruby
1 parent 51c0922 commit eedd311

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/sync-ruby.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Sync ruby/ruby
2+
on:
3+
push:
4+
branches: [master]
5+
jobs:
6+
sync:
7+
name: Sync ruby/ruby
8+
runs-on: ubuntu-latest
9+
if: ${{ github.repository == 'ruby/erb' }}
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+
20+
- name: Sync to ruby/ruby
21+
uses: convictional/trigger-workflow-and-wait@v1.6.5
22+
with:
23+
owner: ruby
24+
repo: ruby
25+
workflow_file_name: sync_default_gems.yml
26+
github_token: ${{ steps.app-token.outputs.token }}
27+
ref: master
28+
client_payload: |
29+
{"gem":"erb","before":"${{ github.event.before }}","after":"${{ github.event.after }}"}
30+
propagate_failure: true
31+
wait_interval: 10

0 commit comments

Comments
 (0)