Merge pull request #379 from dirtyhenry/fixes #37
This file contains 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: Ping Build Hook | |
# 📜 https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
permissions: read-all | |
jobs: | |
ping_build_hook: | |
name: Ping Build hook | |
runs-on: ubuntu-latest | |
environment: Default | |
env: | |
NETLIFY_HOOK_URL: ${{ secrets.NETLIFY_HOOK_URL }} | |
steps: | |
- name: Notify Netlify | |
run: | | |
echo "Pinging $NETLIFY_HOOK_URL" | |
curl -X POST -d '{}' "$NETLIFY_HOOK_URL" |