-
Notifications
You must be signed in to change notification settings - Fork 178
29 lines (29 loc) · 824 Bytes
/
sync.yml
File metadata and controls
29 lines (29 loc) · 824 Bytes
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
name: Sync networks
on:
workflow_dispatch:
schedule:
- cron: '0 10 * * *'
jobs:
sync-nextbike:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
token: ${{ secrets.SYNC_TOKEN }}
- name: Set up Python 3.12
uses: actions/setup-python@v6
with:
python-version: 3.12
- name: Install dependencies
run: make install
- name: Sync nextbike
run: |
python utils/sync_nextbike.py > nextbike.json
mv nextbike.json pybikes/data/nextbike.json
- name: Create Pull Request
uses: peter-evans/create-pull-request@v8
with:
token: ${{ secrets.SYNC_TOKEN }}
commit-message: update nextbike feeds
title: update nextbike feeds
branch: sync/nextbike