File tree Expand file tree Collapse file tree 1 file changed +16
-2
lines changed Expand file tree Collapse file tree 1 file changed +16
-2
lines changed Original file line number Diff line number Diff line change 11name : Validate SumoLogic Queries
22on :
3- pull_request :
3+ pull_request_target :
44 paths :
5- - ' **/*.md' # Trigger only when Markdown files change
5+ - ' **/*.md'
6+ types :
7+ - review_requested
68
79jobs :
810 validate-queries :
1214 with :
1315 fetch-depth : 0 # Required for git diff detection
1416
17+ - name : Fetch pull request branch
18+ run : git fetch origin ${{ github.event.pull_request.head.ref }}:${{ github.event.pull_request.head.ref }}
19+
20+ - name : Checkout PR branch
21+ run : git checkout ${{ github.event.pull_request.head.ref }}
22+
23+ - name : Debug Git Log
24+ run : git log --oneline -n 10
25+ git diff --name-only --diff-filter=AM origin/main...HEAD -- 'docs/**/*.md' > changed_files.txt
26+ echo "Files to validate:"
27+ cat changed_files.txt
28+
1529 - name : Set up Python
1630 uses : actions/setup-python@v4
1731 with :
You can’t perform that action at this time.
0 commit comments