diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index c389af1..571f2ea 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -18,9 +18,9 @@ jobs: docs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 with: { fetch-depth: 0 } - - uses: actions/setup-node@v4 + - uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0 with: node-version: '22' cache: npm @@ -70,7 +70,7 @@ jobs: - name: Deploy to Cloudflare Pages id: deploy if: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository }} - uses: cloudflare/wrangler-action@v3 + uses: cloudflare/wrangler-action@ebbaa1584979971c8614a24965b4405ff95890e0 # v4.0.0 with: apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} @@ -78,9 +78,10 @@ jobs: - name: Comment preview URL if: ${{ github.event_name == 'pull_request' && steps.deploy.outcome == 'success' }} - uses: thollander/actions-comment-pull-request@v3 + uses: marocchino/sticky-pull-request-comment@5770ad5eb8f42dd2c4f34da00c94c5381e49af88 # v3.0.5 with: - comment-tag: docs-preview + header: docs-preview + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} message: | 📄 **Docs preview** for `${{ github.event.pull_request.head.ref }}`: ${{ steps.deploy.outputs.pages-deployment-alias-url }}