Sync discovery #900
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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@v4 | |
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]>" |