File tree Expand file tree Collapse file tree 2 files changed +16
-6
lines changed Expand file tree Collapse file tree 2 files changed +16
-6
lines changed Original file line number Diff line number Diff line change 11name : Validate SumoLogic Queries
22on : [pull_request, push]
3- permissions :
4- contents : read
53
64jobs :
75 validate-queries :
86 runs-on : ubuntu-latest
97 steps :
108 - uses : actions/checkout@v4
9+ with :
10+ fetch-depth : 0 # Required for git diff
11+
12+ - name : Debug filesystem
13+ run : |
14+ echo "Current directory: $(pwd)"
15+ ls -R
16+ echo "Checking scripts directory:"
17+ ls -la scripts/ || echo "No scripts directory found"
1118
1219 - name : Set up Python
1320 uses : actions/setup-python@v4
1421 with :
1522 python-version : " 3.10"
1623
1724 - name : Install dependencies
18- run : |
19- pip install requests pyyaml
25+ run : pip install requests pyyaml
2026
2127 - name : Run validation
2228 env :
2329 SUMO_LOGIC_ACCESS_ID : ${{ secrets.SUMO_LOGIC_ACCESS_ID }}
2430 SUMO_LOGIC_ACCESS_KEY : ${{ secrets.SUMO_LOGIC_ACCESS_KEY }}
2531 run : |
26- python ./scripts/validate_queries.py
32+ if [ -f "scripts/validate_queries.py" ]; then
33+ python scripts/validate_queries.py
34+ else
35+ echo "::error::Script not found at scripts/validate_queries.py"
36+ exit 1
37+ fi
Original file line number Diff line number Diff line change @@ -44,4 +44,3 @@ def _check_results(self, job_id):
4444 response = self .session .get (f"{ self .base_url } /search/jobs/{ job_id } /messages" )
4545 response .raise_for_status ()
4646 return len (response .json ()["messages" ]) > 0
47-
You can’t perform that action at this time.
0 commit comments