From 984a3dbbf92641d5b89341bfb13b27a2e1a1f4d2 Mon Sep 17 00:00:00 2001 From: MaggieCabrera Date: Tue, 21 May 2024 15:52:42 +0200 Subject: [PATCH 1/3] checkout pr head --- .github/workflows/preview-theme.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/preview-theme.yml b/.github/workflows/preview-theme.yml index 32110a34..fd0b2745 100644 --- a/.github/workflows/preview-theme.yml +++ b/.github/workflows/preview-theme.yml @@ -7,15 +7,18 @@ jobs: check-for-changes-to-themes: runs-on: ubuntu-latest steps: - - name: Checkout + - name: Checkout PR Head uses: actions/checkout@v2 + with: + ref: ${{ github.event.pull_request.head.ref }} + repository: ${{ github.event.pull_request.head.repo.full_name }} - name: Retrieved Theme Changes id: check-for-changes run: | # Retrieve list of all changed files - git fetch origin trunk:trunk - changed_files=$(git diff --name-only HEAD origin/trunk) + git fetch origin ${{ github.event.pull_request.base.ref }}:${{ github.event.pull_request.base.ref }} + changed_files=$(git diff --name-only HEAD origin/${{ github.event.pull_request.base.ref }}) # Loop through changed files and identify parent directories declare -A unique_dirs From 3119f6b8683d80fab1337c003c6a9a7f00c34f4f Mon Sep 17 00:00:00 2001 From: MaggieCabrera Date: Tue, 21 May 2024 15:53:11 +0200 Subject: [PATCH 2/3] test commit --- blue-note/patterns/black-image-with-text.php | 1 + 1 file changed, 1 insertion(+) diff --git a/blue-note/patterns/black-image-with-text.php b/blue-note/patterns/black-image-with-text.php index f3991e4e..7f946e41 100644 --- a/blue-note/patterns/black-image-with-text.php +++ b/blue-note/patterns/black-image-with-text.php @@ -4,6 +4,7 @@ * Slug: blue-note/black-image-text * Categories: text * Block Types: core/quote + * test */ ?> From 261e075ac32aa37da47d3c29ad6780190a0fb5ac Mon Sep 17 00:00:00 2001 From: MaggieCabrera Date: Tue, 21 May 2024 15:55:26 +0200 Subject: [PATCH 3/3] Revert "test commit" This reverts commit 3119f6b8683d80fab1337c003c6a9a7f00c34f4f. --- blue-note/patterns/black-image-with-text.php | 1 - 1 file changed, 1 deletion(-) diff --git a/blue-note/patterns/black-image-with-text.php b/blue-note/patterns/black-image-with-text.php index 7f946e41..f3991e4e 100644 --- a/blue-note/patterns/black-image-with-text.php +++ b/blue-note/patterns/black-image-with-text.php @@ -4,7 +4,6 @@ * Slug: blue-note/black-image-text * Categories: text * Block Types: core/quote - * test */ ?>