-
Notifications
You must be signed in to change notification settings - Fork 5
34 lines (31 loc) · 1.04 KB
/
sync-rerum-shared-openapi.yml
File metadata and controls
34 lines (31 loc) · 1.04 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
name: Sync shared RERUM OpenAPI artifact
on:
push:
branches:
- main
paths:
- openapi/components/rerum-shared-components.openapi.yaml
workflow_dispatch:
permissions:
contents: read
jobs:
dispatch-sync:
runs-on: ubuntu-latest
steps:
- name: Dispatch sync-provider-artifact workflow
uses: actions/github-script@v7
with:
github-token: ${{ secrets.BRY_PAT }}
script: |
await github.request('POST /repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches', {
owner: 'cubap',
repo: 'rerum_openapi',
workflow_id: 'sync-provider-artifact.yml',
ref: 'main',
inputs: {
provider_repository: '${{ github.repository }}',
provider_ref: '${{ github.sha }}',
provider_artifact_path: 'openapi/components/rerum-shared-components.openapi.yaml',
target_artifact_path: 'schemas/openapi/rerum-shared-components.openapi.yaml'
}
})