diff --git a/.github/workflows/validate-sample.yml b/.github/workflows/validate-sample.yml index 2a77abe..f26035f 100644 --- a/.github/workflows/validate-sample.yml +++ b/.github/workflows/validate-sample.yml @@ -16,7 +16,7 @@ jobs: - name: Validate any sample.json file run: | # Find all sample.json files in the pull request - files=$(git diff --name-only origin/main...HEAD | grep 'sample.json$') + files=$(git diff --name-only HEAD HEAD~1 | grep 'sample.json$') echo "Found sample.json files: $files" # Process each file