Skip to content

Sync README across Repositories #19

Sync README across Repositories

Sync README across Repositories #19

Workflow file for this run

name: Sync README across Repositories
on:
# Triggers the workflow on push to the main branch of the source repository
push:
branches: [ main ]
paths:
- 'README.md'
# Allow manual triggering of the workflow
workflow_dispatch:
jobs:
sync-readme:
runs-on: ubuntu-latest
permissions: write-all
steps:
# Checkout the repository
- uses: actions/checkout@v4
# Set up Python
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.9'
# Install dependencies
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install PyGithub
# Run the sync script
- name: Sync README
env:
# Use GitHub Actions secret for authentication
GITHUB_TOKEN: ${{ secrets.README_SYNC }}
run: |
python sync_readme.py