Sync Form Invitations #92
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 Form Invitations | |
| on: | |
| schedule: | |
| # Monday and Thursday at 16:00 UTC (17:00 CET / 18:00 CEST) | |
| - cron: '0 16 * * 1,4' | |
| workflow_dispatch: | |
| inputs: | |
| dry_run: | |
| description: 'Preview only — no invitations will be sent' | |
| required: false | |
| default: 'false' | |
| type: choice | |
| options: | |
| - 'false' | |
| - 'true' | |
| permissions: | |
| contents: read | |
| jobs: | |
| sync-invitations: | |
| runs-on: ubuntu-24.04 | |
| timeout-minutes: 10 | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.13' | |
| - name: Install dependencies | |
| run: pip install -r .github/workflows/requirements.txt | |
| - name: Sync form invitations | |
| env: | |
| EXCEL_DOWNLOAD_URL: ${{ vars.EXCEL_DOWNLOAD_URL }} | |
| GH_ORG_ADMIN_TOKEN: ${{ secrets.GH_ORG_ADMIN_TOKEN }} | |
| run: | | |
| if [ "${{ github.event.inputs.dry_run }}" = "true" ]; then | |
| python3 .github/workflows/sync_form_invitations.py --dry-run | |
| else | |
| python3 .github/workflows/sync_form_invitations.py | |
| fi |