From 64468dfb1ba9f3c5610dafd76b52be8e4943dd9d Mon Sep 17 00:00:00 2001 From: Krishan <33421343+kfiven@users.noreply.github.com> Date: Thu, 14 May 2026 13:01:54 +1000 Subject: [PATCH] Merge commit from fork Updated the validation for PR number extraction to ensure it contains only numeric content, and changed the secret used for Netlify authentication. --- .github/workflows/deploy-pull-request.yml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/deploy-pull-request.yml b/.github/workflows/deploy-pull-request.yml index 7d8e321..8d73178 100644 --- a/.github/workflows/deploy-pull-request.yml +++ b/.github/workflows/deploy-pull-request.yml @@ -21,9 +21,15 @@ jobs: workflow: ${{ github.event.workflow.id }} run_id: ${{ github.event.workflow_run.id }} name: pr - - name: Output pr number + - name: Validate and output pr number id: pr - run: echo "id=$(> $GITHUB_OUTPUT + run: | + PR_ID=$(> "${GITHUB_OUTPUT}" - name: Download artifact uses: dawidd6/action-download-artifact@b6e2e70617bc3265edd6dab6c906732b2f1ae151 # v21 with: @@ -42,7 +48,7 @@ jobs: enable-pull-request-comment: false enable-commit-comment: false env: - NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} + NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN_PR }} NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID_PR_CINNY }} timeout-minutes: 1 - name: Comment preview on PR