W3PN data refresh #2580
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: W3PN data refresh | |
| # This file manages the workflow for update scripts wthin the MAKEFILE | |
| # Run to refresh the event images, speaker images, and generating the thumbs for them | |
| on: | |
| workflow_dispatch: | |
| workflow_run: | |
| workflows: ["Deploy to GitHub Pages"] | |
| types: | |
| - completed | |
| schedule: | |
| - cron: '0 */12 * * *' | |
| permissions: | |
| contents: write | |
| id-token: write | |
| pages: write | |
| actions: write | |
| jobs: | |
| refresh-data: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout your repository using git | |
| uses: actions/checkout@v4 | |
| - uses: denoland/setup-deno@v1 | |
| with: | |
| deno-version: v1.x | |
| - uses: szenius/[email protected] | |
| with: | |
| timezoneLinux: "Europe/Prague" | |
| - name: run MAKEFILE environment | |
| run: make build | |
| - name: running images.js - checking event images | |
| run: make images | |
| - name: running img-opt.js - optimising images and making thumbnails (events) | |
| run: make img-opt | |
| - name: run thumbs-gen.js - optimising images and making thumbnails (people) | |
| run: make thumbs-gen | |
| - name: run test.js - testing the data according to schema | |
| run: make test | |
| - uses: EndBug/add-and-commit@v9 | |
| with: | |
| default_author: github_actions | |
| message: 'data refresh script has been executed on /data' |