alert README repo of changes on main #9
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: alert README repo of changes on main | |
on: | |
workflow_dispatch: | |
# Runs on git reference deletion (branch or tag) | |
delete: | |
jobs: | |
dispatch: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Update README in deeheber/deeheber repo | |
run: | | |
curl -H "Accept: application/vnd.github.everest-preview+json" \ | |
-H "Authorization: token ${{ secrets.DISPATCH_TOKEN }}" \ | |
--request POST \ | |
--data '{"event_type": "scrape", "client_payload": {"ref": "${{ github.ref }}"}' https://api.github.com/repos/deeheber/deeheber/dispatches |