From 04fed6159f1da1e6ed2c601b31acdcf803f68123 Mon Sep 17 00:00:00 2001 From: WhiteHoodHacker Date: Sun, 3 Nov 2024 21:22:33 +0000 Subject: [PATCH] chore: update workflow schedule --- .github/workflows/scheduled-pings.yml | 44 +++++++++++++++++++++++++-- 1 file changed, 42 insertions(+), 2 deletions(-) diff --git a/.github/workflows/scheduled-pings.yml b/.github/workflows/scheduled-pings.yml index 80df9367..c7a48320 100644 --- a/.github/workflows/scheduled-pings.yml +++ b/.github/workflows/scheduled-pings.yml @@ -1,4 +1,44 @@ name: Scheduled Jobs 'on': - schedule: [] -jobs: {} + schedule: + - cron: 0 0 7 11 4 + - cron: 0 23 7 11 4 +jobs: + helper-ping-Python-Jails-at-2024-11-07T000000000Z: + name: helper ping Python Jails at 2024-11-07T00:00:00.000Z + if: github.event.schedule == '0 0 7 11 4' + 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: PEAmNjgzNDQ5NzI0MjQxNTc1OTUxPgoqKlB5dGhvbiBKYWlscyoqIGlzIDx0OjE3MzEwMjQwMDA6Uj4hCmh0dHBzOi8vc2lncHdueS5jb20vbWVldGluZ3MvZ2VuZXJhbC8yMDI0LTExLTA3Lw== + 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-Python-Jails-at-2024-11-07T230000000Z: + name: helper ping Python Jails at 2024-11-07T23:00:00.000Z + if: github.event.schedule == '0 23 7 11 4' + 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: PEAmNjgzNDQ5NzI0MjQxNTc1OTUxPgoqKlB5dGhvbiBKYWlscyoqIGlzIDx0OjE3MzEwMjQwMDA6Uj4hCmh0dHBzOi8vc2lncHdueS5jb20vbWVldGluZ3MvZ2VuZXJhbC8yMDI0LTExLTA3Lw== + 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