From 34ddab6f28dfb169b0a90d001343ac89856cb2f6 Mon Sep 17 00:00:00 2001 From: Jan Calanog Date: Mon, 10 Feb 2025 16:50:06 +0100 Subject: [PATCH 1/3] test --- .github/workflows/preview-build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/preview-build.yml b/.github/workflows/preview-build.yml index 55ee24335..69db163e1 100644 --- a/.github/workflows/preview-build.yml +++ b/.github/workflows/preview-build.yml @@ -51,7 +51,7 @@ jobs: if: github.event_name != 'pull_request' || steps.check-files.outputs.any_changed == 'true' uses: actions/checkout@v4 with: - persist-credentials: false + persist-credentials: false # test - name: Generate path prefix env: From 374ce0fcae3cc459718a9bc99019028367fd83b6 Mon Sep 17 00:00:00 2001 From: Jan Calanog Date: Mon, 10 Feb 2025 16:55:40 +0100 Subject: [PATCH 2/3] Fix PR preview deployment --- .github/workflows/preview-build.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/preview-build.yml b/.github/workflows/preview-build.yml index 69db163e1..ebdb0c22b 100644 --- a/.github/workflows/preview-build.yml +++ b/.github/workflows/preview-build.yml @@ -51,7 +51,7 @@ jobs: if: github.event_name != 'pull_request' || steps.check-files.outputs.any_changed == 'true' uses: actions/checkout@v4 with: - persist-credentials: false # test + persist-credentials: false - name: Generate path prefix env: @@ -78,7 +78,7 @@ jobs: id: metadata env: PR_NUMBER: ${{ github.event.pull_request.number }} - REF: ${{ github.sha }} + REF: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha ||github.sha }} SHOULD_DEPLOY: ${{ github.event_name == 'pull_request' && steps.check-files.outputs.any_changed || 'true' }} run: | cat << EOF > deployment_metadata.json From 4de31cf5e5452d20f1509557b7f5e5cb7a064bdd Mon Sep 17 00:00:00 2001 From: Jan Calanog Date: Mon, 10 Feb 2025 16:59:17 +0100 Subject: [PATCH 3/3] Update .github/workflows/preview-build.yml --- .github/workflows/preview-build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/preview-build.yml b/.github/workflows/preview-build.yml index ebdb0c22b..40531542e 100644 --- a/.github/workflows/preview-build.yml +++ b/.github/workflows/preview-build.yml @@ -78,7 +78,7 @@ jobs: id: metadata env: PR_NUMBER: ${{ github.event.pull_request.number }} - REF: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha ||github.sha }} + REF: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }} SHOULD_DEPLOY: ${{ github.event_name == 'pull_request' && steps.check-files.outputs.any_changed || 'true' }} run: | cat << EOF > deployment_metadata.json