Skip to content

Scheduled Jobs

Scheduled Jobs #113

name: Scheduled Jobs
'on':
schedule:
- cron: 0 17 14 1 2
- cron: 0 16 15 1 3
jobs:
helper-ping-eCTF-Kickoff-at-2025-01-14T170000000Z:
name: helper ping eCTF Kickoff at 2025-01-14T17:00:00.000Z
if: github.event.schedule == '0 17 14 1 2'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: latest
- run: npm ci
working-directory: sigpwny.com
- env:
DISCORD_B64_MESSAGE: PEAmNjgzNDQ5NzI0MjQxNTc1OTUxPgoqKmVDVEYgS2lja29mZioqIGlzIDx0OjE3MzY5NjA0MDA6Uj4hCmh0dHBzOi8vc2lncHdueS5jb20vbWVldGluZ3MvZW1iZWRkZWQvMjAyNS0wMS0xNS8=
DISCORD_CHANNEL_ID: ${{ vars.DISCORD_CONTENT_CHANNEL_ID }}
DISCORD_SERVER_ID: ${{ secrets.DISCORD_SERVER_ID }}
DISCORD_TOKEN: ${{ secrets.DISCORD_TOKEN }}
run: touch .env && npm run send-discord-ping
working-directory: sigpwny.com
helper-ping-eCTF-Kickoff-at-2025-01-15T160000000Z:
name: helper ping eCTF Kickoff at 2025-01-15T16:00:00.000Z
if: github.event.schedule == '0 16 15 1 3'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: latest
- run: npm ci
working-directory: sigpwny.com
- env:
DISCORD_B64_MESSAGE: PEAmNjgzNDQ5NzI0MjQxNTc1OTUxPgoqKmVDVEYgS2lja29mZioqIGlzIDx0OjE3MzY5NjA0MDA6Uj4hCmh0dHBzOi8vc2lncHdueS5jb20vbWVldGluZ3MvZW1iZWRkZWQvMjAyNS0wMS0xNS8=
DISCORD_CHANNEL_ID: ${{ vars.DISCORD_CONTENT_CHANNEL_ID }}
DISCORD_SERVER_ID: ${{ secrets.DISCORD_SERVER_ID }}
DISCORD_TOKEN: ${{ secrets.DISCORD_TOKEN }}
run: touch .env && npm run send-discord-ping
working-directory: sigpwny.com