From 27b48a1a6e95a4d6c3244d9a56997df459b0299b Mon Sep 17 00:00:00 2001 From: Ross Williams Date: Thu, 9 Jan 2025 18:06:22 +0000 Subject: [PATCH] Use PR HEAD as action version --- .github/workflows/preview-example.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/preview-example.yml b/.github/workflows/preview-example.yml index 12afe5f..02372a8 100644 --- a/.github/workflows/preview-example.yml +++ b/.github/workflows/preview-example.yml @@ -14,9 +14,8 @@ jobs: if: github.event.pull_request.head.repo.full_name == github.repository steps: - name: Checkout - uses: actions/checkout@v3 - + uses: actions/checkout@v4 - name: Deploy preview - uses: rossjrw/pr-preview-action@v1 + uses: rossjrw/pr-preview-action@${{ github.event.pull_request.head.sha }} with: source-dir: test