-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (46 loc) · 1.34 KB
/
sync-openapi.yml
File metadata and controls
56 lines (46 loc) · 1.34 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
49
50
51
52
53
54
55
56
name: Sync OpenAPI
on:
workflow_dispatch:
schedule:
- cron: "0 2 * * *"
jobs:
sync:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
steps:
- name: Checkout
uses: actions/checkout@v5
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: "3.11"
- name: Set up Java
uses: actions/setup-java@v5
with:
distribution: temurin
java-version: "21"
cache: maven
- name: Refresh OpenAPI and generated sources
run: python3 scripts/sync_sdk.py
- name: Test normalization scripts
run: python3 -m unittest discover -s scripts/tests
- name: Verify build
run: mvn -B verify
- name: Create pull request
uses: peter-evans/create-pull-request@v7
with:
branch: automation/openapi-sync
commit-message: "chore: sync OpenAPI-generated SDK"
title: "chore: sync OpenAPI-generated SDK"
body: |
Automated OpenAPI sync.
- refreshed the raw upstream OpenAPI document
- regenerated the normalized SDK input
- updated checked-in generated Java sources
labels: |
automation
openapi