Skip to content

Commit

Permalink
add docs-preview-delete workflow (#779)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rich-Harris authored Nov 2, 2024
1 parent 43bd322 commit cbc5e9e
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/docs-preview-delete.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Docs preview delete

on:
repository_dispatch:
types: [docs-preview-delete]

jobs:
Sync:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
token: ${{ secrets.GH_TOKEN }}

- name: Delete branch
run: git push origin :sync/${{ github.event.client_payload.package }}/${{ github.event.client_payload.owner }}/${{ github.event.client_payload.branch }}

0 comments on commit cbc5e9e

Please sign in to comment.