name: AI readiness on: workflow_run: workflows: [Deploy] # the name of your production deploy workflow types: [completed] branches: [main] schedule: - cron: "41 6 * * 1" # Mondays: changes made outside git (CDN, CMS plugins) workflow_dispatch: concurrency: ai-readiness # one audit at a time; a newer deploy waits its turn jobs: gate: if: >- github.event_name != 'workflow_run' || github.event.workflow_run.conclusion == 'success' runs-on: ubuntu-latest timeout-minutes: 20 steps: - uses: actions/checkout@v7 - uses: actions/setup-node@v7 with: node-version: 24 - run: node scripts/ai-readiness-gate.mjs env: APIFY_TOKEN: ${{ secrets.APIFY_TOKEN }}