Update SPEC 0 schedule #3
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: Update SPEC 0 schedule | |
| on: | |
| schedule: | |
| - cron: "0 0 1 1,4,7,10 *" # Quarterly: 1st Jan, Apr, Jul, Oct | |
| workflow_dispatch: | |
| jobs: | |
| update-schedule: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 | |
| - uses: prefix-dev/setup-pixi@a09b6247153796b190642a2b53fac4241043cf6f # v0.10.0 | |
| with: | |
| pixi-version: "v0.69.0" | |
| - name: Generate schedule files | |
| run: pixi run generate-schedule | |
| - name: Publish schedule as release asset | |
| env: | |
| GH_TOKEN: ${{ github.token }} | |
| run: | | |
| QUARTER="Q$(( ($(date +%-m) - 1) / 3 + 1 ))" | |
| YEAR=$(date +%Y) | |
| TAG="schedule-${YEAR}-${QUARTER}" | |
| gh release create "$TAG" schedule.json schedule.md \ | |
| --title "SPEC 0 Schedule ${YEAR}-${QUARTER}" \ | |
| --notes "Quarterly auto-generated SPEC 0 support schedule. Downloaded automatically by spec0-action." |