Skip to content

Commit

Permalink
feat: added hook trigger
Browse files Browse the repository at this point in the history
  • Loading branch information
Zain-ul-din committed Mar 20, 2024
1 parent f1a8e29 commit 99206a2
Showing 1 changed file with 17 additions and 4 deletions.
21 changes: 17 additions & 4 deletions .github/workflows/crawl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ on:
description: Php Session ID use to bypass login
required: true
type: string
hook:
default: https://www.google.com
description: Hook to trigger after done with scraping. e.g. https://vercel.com/docs/deployments/deploy-hooks
required: true
type: string

jobs:
crawl:
Expand Down Expand Up @@ -38,11 +43,19 @@ jobs:
git commit -m "🤖 Github Action: updated encrypted DB"
git push origin master
# Appendix:
# https://stackoverflow.com/questions/72851548/permission-denied-to-github-actionsbot
- name: Trigger Hook 🪝
run: CURL -X POST ${{ inputs.hook }}
##
##
## Appendix:
## https://stackoverflow.com/questions/72851548/permission-denied-to-github-actionsbot
##
##

# Trigger Action using API call
# https://github.com/jbranchaud/til/blob/master/github-actions/trigger-a-workflow-via-an-api-call.md
##
## Trigger Action using API call
## https://github.com/jbranchaud/til/blob/master/github-actions/trigger-a-workflow-via-an-api-call.md
##

##
## USAGE:
Expand Down

0 comments on commit 99206a2

Please sign in to comment.