diff --git a/.github/workflows/pkgdown.yaml b/.github/workflows/pkgdown.yaml index 301c4a8..035802a 100644 --- a/.github/workflows/pkgdown.yaml +++ b/.github/workflows/pkgdown.yaml @@ -122,6 +122,7 @@ jobs: permissions: contents: write + pull-requests: write steps: - uses: actions/checkout@v7 @@ -144,3 +145,9 @@ jobs: git commit -m "Remove pkgdown preview for PR #$PR_NUMBER" git pull --rebase origin gh-pages git push origin HEAD:gh-pages + + - name: Hide preview comment + uses: marocchino/sticky-pull-request-comment@v2 + with: + hide: true + hide_classify: OUTDATED diff --git a/inst/workflows/pkgdown.yaml b/inst/workflows/pkgdown.yaml index 301c4a8..035802a 100644 --- a/inst/workflows/pkgdown.yaml +++ b/inst/workflows/pkgdown.yaml @@ -122,6 +122,7 @@ jobs: permissions: contents: write + pull-requests: write steps: - uses: actions/checkout@v7 @@ -144,3 +145,9 @@ jobs: git commit -m "Remove pkgdown preview for PR #$PR_NUMBER" git pull --rebase origin gh-pages git push origin HEAD:gh-pages + + - name: Hide preview comment + uses: marocchino/sticky-pull-request-comment@v2 + with: + hide: true + hide_classify: OUTDATED