-
Notifications
You must be signed in to change notification settings - Fork 18
59 lines (49 loc) · 1.71 KB
/
schema-publish.yaml
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
57
58
59
name: schema-publish
# author: @ralfhandl
#
# This workflow copies the x.y schemas to the gh-pages branch
#
# run this on push to main
on:
push:
branches:
- main
workflow_dispatch: {}
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4 # checkout main branch
with:
fetch-depth: 0
- uses: actions/setup-node@v4 # setup Node.js
with:
node-version: 20.x
- name: Install dependencies
run: npm ci
- uses: actions/checkout@v4 # checkout gh-pages branch
with:
token: ${{ secrets.OAS_REPO_TOKEN }}
repository: OAI/OpenAPI-Specification
ref: gh-pages
path: deploy
- name: run main script
run: scripts/schema-publish.sh
- name: Create Pull Request
uses: peter-evans/create-pull-request@v7
with:
# A personal access token is required to push changes to the repository.
# This token needs to be refreshed regularly and stored in the repository secrets.
token: ${{ secrets.OAS_REPO_TOKEN }}
branch: publish-overlay-schema-iteration
base: gh-pages
delete-branch: true
path: deploy
labels: Housekeeping,Schema
reviewers: darrelmiller,webron,earth2marsh,lornajane,mikekistler,miqui,handrews
title: Publish Overlay Schema Iterations
commit-message: New Overlay schema iterations
signoff: true
body: |
This pull request is automatically triggered by GitHub action `schema-publish` in the OAI/Overlay-Specification repo.
The `schemas/**/*.yaml` files have changed and JSON files are automatically generated.