This repository was archived by the owner on Oct 22, 2025. It is now read-only.
.github/workflows/courses.yml #1783
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: Reload Courses Every Hour | |
| on: | |
| schedule: | |
| - cron: '0 * * * *' # Cada hora en minuto 0 | |
| jobs: | |
| reload: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repo | |
| uses: actions/checkout@v3 | |
| - name: Setup Node.js 22 | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '22' | |
| - name: Install dependencies | |
| run: npm install | |
| - name: Run reload-courses script | |
| env: | |
| API_SECRET: ${{ secrets.API_SECRET }} | |
| CLOUDFLARE_API_TOKEN: ${{ secrets.CF_API_TOKEN }} | |
| CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CF_ACCOUNT_ID }} | |
| run: npm run reload-courses |