Skip to content

Sync README across Repositories #13

Sync README across Repositories

Sync README across Repositories #13

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:
actions: write
contents: write
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: ${{ GITHUB_TOKEN }}

Check failure on line 41 in .github/workflows/sync_readme.yml

View workflow run for this annotation

GitHub Actions / Sync README across Repositories

Invalid workflow file

The workflow is not valid. .github/workflows/sync_readme.yml (Line: 41, Col: 23): Unrecognized named-value: 'GITHUB_TOKEN'. Located at position 1 within expression: GITHUB_TOKEN
run: |
python sync_readme.py