-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathsync-core-provider-contract.yml
More file actions
48 lines (41 loc) · 1.4 KB
/
sync-core-provider-contract.yml
File metadata and controls
48 lines (41 loc) · 1.4 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
39
40
41
42
43
44
45
46
47
48
name: Sync Core Provider Contract
on:
workflow_dispatch:
push:
branches:
- main
paths:
- contracts/core-provider.openapi.yaml
- routes/**
jobs:
sync-core-provider-contract:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout source repository
uses: actions/checkout@v4
- name: Checkout rerum_openapi
uses: actions/checkout@v4
with:
repository: cubap/rerum_openapi
token: ${{ secrets.BRY_PAT }}
path: rerum_openapi
- name: Copy provider contract baseline
run: |
cp contracts/core-provider.openapi.yaml rerum_openapi/seams/tinynode-to-rerum/openapi/baseline.openapi.yaml
- name: Create sync pull request
uses: peter-evans/create-pull-request@v7
with:
token: ${{ secrets.BRY_PAT }}
path: rerum_openapi
branch: automation/sync-rerum-core-provider-contract
delete-branch: true
commit-message: Sync RERUM core provider contract from rerum_server_nodejs
title: Sync RERUM core provider contract from rerum_server_nodejs
body: |
Automated sync from `${{ github.repository }}` at `${{ github.sha }}`.
Source:
- `contracts/core-provider.openapi.yaml`
Target:
- `seams/tinynode-to-rerum/openapi/baseline.openapi.yaml`