forked from stravalib/stravalib
-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (30 loc) · 991 Bytes
/
check-strava-api.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
name: Check Strava API
on:
schedule:
- cron: "0 0 * * *"
workflow_dispatch:
jobs:
update-model:
name: Update Model
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Fetch API
run: curl https://developers.strava.com/swagger/swagger.json > src/stravalib/tests/resources/strava_swagger.json
- name: Fetch API Schema
uses: stravalib/strava_swagger2pydantic@v1
with:
model_file: "src/stravalib/strava_model.py"
- name: Create Pull Request
uses: peter-evans/create-pull-request@v4
with:
add-paths: |
stravalib
commit-message: Strava API Change
branch: api-change
delete-branch: true
title: "[CHANGE] Strava API Change"
body: |
There were changes in the Strava API:
[Please edit this comment to indicate what has changed]
- [ ] The changelog is updated (only when necessary)