From cbc5e9e27e630d1a2180540ce9239ac6f81ea42f Mon Sep 17 00:00:00 2001 From: Rich Harris Date: Sat, 2 Nov 2024 18:36:55 -0400 Subject: [PATCH] add docs-preview-delete workflow (#779) --- .github/workflows/docs-preview-delete.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .github/workflows/docs-preview-delete.yml diff --git a/.github/workflows/docs-preview-delete.yml b/.github/workflows/docs-preview-delete.yml new file mode 100644 index 000000000..8e2b567f1 --- /dev/null +++ b/.github/workflows/docs-preview-delete.yml @@ -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 }}