Skip to content

feat(scripts): add tutorial code sync tool #1

feat(scripts): add tutorial code sync tool

feat(scripts): add tutorial code sync tool #1

name: Check tutorial code sync
on:
workflow_dispatch:
pull_request:
paths:
- 'docs/tutorials/**'
- 'scripts/tutorial-sync/**'
jobs:
check-sync:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
repository: dashpay/platform-tutorials
path: platform-tutorials
- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
with:
python-version: '3.10'
- run: pip install pyyaml
- run: python3 scripts/tutorial-sync/sync_tutorial_code.py --check --source platform-tutorials