Skip to content

Update Tezos Protocol GPX #5

Update Tezos Protocol GPX

Update Tezos Protocol GPX #5

Workflow file for this run

name: Update Tezos Protocol GPX
on:
schedule:
- cron: "0 9 1 */3 *" # 1st of every 3rd month at 09:00 UTC
workflow_dispatch:
permissions:
contents: write
pull-requests: write
jobs:
update-gpx:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install system dependencies
run: sudo apt-get update && sudo apt-get install -y libgeos-dev libproj-dev
- name: Install dependencies
run: pip install -r requirements.txt
- name: Run update script
run: python scripts/update_gpx.py --url "${{ vars.NAMING_URL }}"
- name: Generate map
run: python scripts/generate_map.py
- name: Create pull request
uses: peter-evans/create-pull-request@v7
with:
commit-message: "Update protocol data"
title: "Update protocol data"
body: |
Automated quarterly update.
Changed: tezos.gpx, protocols.json, map.png, protocol-count.json
base: main
branch: auto/update-protocol-data
delete-branch: true
add-paths: |
tezos.gpx
protocols.json
map.png
protocol-count.json