Sync Organization Profile README #559
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Sync Organization Profile README | |
| on: | |
| workflow_dispatch: | |
| schedule: | |
| - cron: '18 0,3,6,9,12,13,15,18,21 * * *' | |
| timezone: 'Asia/Kolkata' | |
| - cron: '0 0 * * *' | |
| timezone: 'Asia/Kolkata' | |
| push: | |
| paths: | |
| - 'data/members.json' | |
| - 'data/projects.json' | |
| - 'generate_readme.py' | |
| - '.github/workflows/sync-profile-readme.yml' | |
| permissions: | |
| contents: write | |
| jobs: | |
| sync-readme: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out repository | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.x' | |
| - name: Regenerate profile README | |
| env: | |
| GITHUB_TOKEN: ${{ github.token }} | |
| run: python generate_readme.py | |
| - name: Commit updated README if needed | |
| uses: stefanzweifel/git-auto-commit-action@v5 | |
| with: | |
| commit_message: 'chore: sync organization profile README' | |
| file_pattern: profile/README.md |