Skip to content

Commit

Permalink
Add GH action to update readme repo
Browse files Browse the repository at this point in the history
  • Loading branch information
deeheber committed Jul 9, 2024
1 parent 9dd663d commit 11aa990
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/dispatch.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
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

0 comments on commit 11aa990

Please sign in to comment.