-
Notifications
You must be signed in to change notification settings - Fork 12
44 lines (38 loc) · 1.16 KB
/
sync-discovery.yml
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
# This workflow will review the current status of the APIs. It will verify if the API is:
# - Reachable, i.e. we can download it.
# - Following OpenapiV3+
name: Sync discovery
on:
schedule:
- cron: "0 0 * * *"
push:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x]
steps:
- uses: actions/checkout@v4
with:
token: ${{ secrets.NACHO_BOT_TOKEN }}
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm ci
- id: discovery
run: npm run discovery
- name: Create Pull Request
uses: peter-evans/create-pull-request@v7
with:
token: ${{ secrets.NACHO_BOT_TOKEN }}
title: Syncing API
body: |
There were some changes in the discovery or the contents of the APIs.
Automated changes by [create-pull-request](https://github.com/peter-evans/create-pull-request) GitHub action
commit-message: Syncing API
delete-branch: true
author: "GitHub <[email protected]>"