Skip to content

Commit

Permalink
codeql: Only purge python cache if CODEQL_PYTHON is set
Browse files Browse the repository at this point in the history
Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu>
  • Loading branch information
jvesely committed Jan 25, 2024
1 parent 3380105 commit 64f5557
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,10 @@ jobs:
- name: Cache cleanup
shell: bash
run: |
$CODEQL_PYTHON -m pip cache info
$CODEQL_PYTHON -m pip cache purge
if [ -n "$CODEQL_PYTHON" ]; then
$CODEQL_PYTHON -m pip cache info
$CODEQL_PYTHON -m pip cache purge
fi
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
Expand Down

0 comments on commit 64f5557

Please sign in to comment.