-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
38 lines (35 loc) · 1.18 KB
/
sync-ruby.yml
File metadata and controls
38 lines (35 loc) · 1.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: Sync ruby
on:
push:
branches: [master]
permissions:
contents: read
jobs:
sync:
name: Sync ruby
runs-on: ubuntu-latest
if: ${{ github.repository_owner == 'ruby' }}
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- name: Create GitHub App token
id: app-token
uses: actions/create-github-app-token@1b10c78c7865c340bc4f6099eb2f838309f1e8c3 # v3.1.1
with:
app-id: 2060836
private-key: ${{ secrets.RUBY_SYNC_DEFAULT_GEMS_PRIVATE_KEY }}
owner: ruby
repositories: ruby
- name: Sync to ruby/ruby
uses: convictional/trigger-workflow-and-wait@f69fa9eedd3c62a599220f4d5745230e237904be # v1.6.5
with:
owner: ruby
repo: ruby
workflow_file_name: sync_default_gems.yml
github_token: ${{ steps.app-token.outputs.token }}
ref: master
client_payload: |
{"gem":"${{ github.event.repository.name }}","before":"${{ github.event.before }}","after":"${{ github.event.after }}"}
propagate_failure: true
wait_interval: 10