diff --git a/.github/workflows/DocCleanup.yml b/.github/workflows/DocCleanup.yml index f8e2302..e6072fc 100644 --- a/.github/workflows/DocCleanup.yml +++ b/.github/workflows/DocCleanup.yml @@ -2,15 +2,18 @@ name: Doc Preview Cleanup on: - pull_request: + pull_request_target: types: [closed] +permissions: + contents: write + jobs: doc-preview-cleanup: runs-on: ubuntu-latest steps: - name: Checkout gh-pages branch - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: ref: gh-pages - name: Delete preview and history + push changes @@ -24,4 +27,4 @@ jobs: git push --force origin gh-pages-new:gh-pages fi env: - PRNUM: ${{ github.event.number }} \ No newline at end of file + PRNUM: ${{ github.event.number }}