Skip to content

Update bundled openapi definition #13757

Update bundled openapi definition

Update bundled openapi definition #13757

Workflow file for this run

---
name: Update bundled openapi definition
"on":
push:
branches:
- master
workflow_dispatch:
schedule:
- cron: '0 * * * *' # At :00 every hour
jobs:
scheduled:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
- name: Fetch latest OpenAPI definition
shell: bash
run: |-
curl https://openapi-v2.exoscale.com/source.json | ./.sort-enums.py | jq > exoscale/openapi.json
- name: Commit and push if changed
run: |-
git config user.name "Automated"
git config user.email "[email protected]"
git add exoscale/openapi.json
timestamp=$(date -u)
git commit -m "OpenAPI spec update: ${timestamp}" || exit 0
git push