From d0e3782f230a5586ec48a1bf539792600465a4c5 Mon Sep 17 00:00:00 2001 From: Jan Calanog Date: Wed, 2 Jul 2025 09:46:36 +0200 Subject: [PATCH 1/3] preview-build: Add path-pattern-ignore So we can ignore some files and so that the files are not included in the comment --- .github/workflows/preview-build.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/preview-build.yml b/.github/workflows/preview-build.yml index 90c6d8f80..8fdc455c0 100644 --- a/.github/workflows/preview-build.yml +++ b/.github/workflows/preview-build.yml @@ -38,6 +38,11 @@ on: type: string default: '**' required: false + path-pattern-ignore: + description: 'Path pattern to ignore files.' + type: string + default: '' + required: false free-disk-space: description: 'Free disk space before running the build' type: string @@ -118,6 +123,7 @@ jobs: uses: tj-actions/changed-files@2f7c5bfce28377bc069a65ba478de0a74aa0ca32 # v46.0.1 with: files: ${{ inputs.path-pattern != '' && inputs.path-pattern || '**' }} + files_ignore: ${{ inputs.path-pattern-ignore != '' && inputs.path-pattern-ignore || '' }} - name: Checkout if: env.MATCH == 'true' && (startsWith(github.event_name, 'pull_request') && steps.check-files.outputs.any_modified == 'true') From e14aedb941c2c3100c9f7980fd7cbc6d72ac5224 Mon Sep 17 00:00:00 2001 From: Jan Calanog Date: Wed, 2 Jul 2025 11:47:51 +0200 Subject: [PATCH 2/3] test --- .github/workflows/preview-build.yml | 2 +- docs/testing/cross-links.md | 2 ++ docs/testing/req.md | 2 ++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/preview-build.yml b/.github/workflows/preview-build.yml index 8fdc455c0..6145c2864 100644 --- a/.github/workflows/preview-build.yml +++ b/.github/workflows/preview-build.yml @@ -123,7 +123,7 @@ jobs: uses: tj-actions/changed-files@2f7c5bfce28377bc069a65ba478de0a74aa0ca32 # v46.0.1 with: files: ${{ inputs.path-pattern != '' && inputs.path-pattern || '**' }} - files_ignore: ${{ inputs.path-pattern-ignore != '' && inputs.path-pattern-ignore || '' }} + files_ignore: ${{ inputs.path-pattern-ignore != '' && inputs.path-pattern-ignore || 'docs/testing/req.md' }} - name: Checkout if: env.MATCH == 'true' && (startsWith(github.event_name, 'pull_request') && steps.check-files.outputs.any_modified == 'true') diff --git a/docs/testing/cross-links.md b/docs/testing/cross-links.md index 4f0863d4c..111e3c4d1 100644 --- a/docs/testing/cross-links.md +++ b/docs/testing/cross-links.md @@ -5,3 +5,5 @@ [Kibana][1] [1]: docs-content://index.md + +test diff --git a/docs/testing/req.md b/docs/testing/req.md index 24cd5f6f9..6e63360eb 100644 --- a/docs/testing/req.md +++ b/docs/testing/req.md @@ -35,3 +35,5 @@ The tutorial assumes that you have no previous knowledge of Elasticsearch or gen {applies_to}`ece: removed` + +test From 80be5172cda589f558d93b474473243d616ad367 Mon Sep 17 00:00:00 2001 From: Jan Calanog Date: Wed, 2 Jul 2025 11:53:07 +0200 Subject: [PATCH 3/3] Revert "test" This reverts commit e14aedb941c2c3100c9f7980fd7cbc6d72ac5224. --- .github/workflows/preview-build.yml | 2 +- docs/testing/cross-links.md | 2 -- docs/testing/req.md | 2 -- 3 files changed, 1 insertion(+), 5 deletions(-) diff --git a/.github/workflows/preview-build.yml b/.github/workflows/preview-build.yml index 6145c2864..8fdc455c0 100644 --- a/.github/workflows/preview-build.yml +++ b/.github/workflows/preview-build.yml @@ -123,7 +123,7 @@ jobs: uses: tj-actions/changed-files@2f7c5bfce28377bc069a65ba478de0a74aa0ca32 # v46.0.1 with: files: ${{ inputs.path-pattern != '' && inputs.path-pattern || '**' }} - files_ignore: ${{ inputs.path-pattern-ignore != '' && inputs.path-pattern-ignore || 'docs/testing/req.md' }} + files_ignore: ${{ inputs.path-pattern-ignore != '' && inputs.path-pattern-ignore || '' }} - name: Checkout if: env.MATCH == 'true' && (startsWith(github.event_name, 'pull_request') && steps.check-files.outputs.any_modified == 'true') diff --git a/docs/testing/cross-links.md b/docs/testing/cross-links.md index 111e3c4d1..4f0863d4c 100644 --- a/docs/testing/cross-links.md +++ b/docs/testing/cross-links.md @@ -5,5 +5,3 @@ [Kibana][1] [1]: docs-content://index.md - -test diff --git a/docs/testing/req.md b/docs/testing/req.md index 6e63360eb..24cd5f6f9 100644 --- a/docs/testing/req.md +++ b/docs/testing/req.md @@ -35,5 +35,3 @@ The tutorial assumes that you have no previous knowledge of Elasticsearch or gen {applies_to}`ece: removed` - -test