Skip to content

Instantly share code, notes, and snippets.

@mordonez
Last active October 2, 2023 19:05
Show Gist options
  • Save mordonez/4db0cedbce5d572bf2bfbc8292374cd2 to your computer and use it in GitHub Desktop.
Save mordonez/4db0cedbce5d572bf2bfbc8292374cd2 to your computer and use it in GitHub Desktop.
Github Action Cron to call webhook
name: Build Site
on:
schedule:
# Every Friday at 13:00 UTC
# ┌───────────── minute (0 - 59)
# │ ┌───────────── hour (0 - 23)
# │ │ ┌───────────── day of the month (1 - 31)
# │ │ │ ┌───────────── month (1 - 12)
# │ │ │ │ ┌───────────── day of the week (0 - 6)
# │ │ │ │ │
# │ │ │ │ │
# │ │ │ │ │
#* * * * *
- cron: '* 13 * * 5'
jobs:
Trigger-Build:
runs-on: ubuntu-latest
steps:
- run: echo "set env using WEBHOOK"
env:
WEBHOOK: ${{secrets.WEBHOOK}}
- name: Post to Webhook
id: rebuild
uses: fjogeleit/http-request-action@master
with:
url: ${{secrets.WEBHOOK}}
method: 'POST'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment