Last active
October 2, 2023 19:05
-
-
Save mordonez/4db0cedbce5d572bf2bfbc8292374cd2 to your computer and use it in GitHub Desktop.
Github Action Cron to call webhook
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: 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