Don't upload during cancelled jobs

This commit is contained in:
Andrew Eisenberg 2024-09-23 12:20:21 -07:00 committed by GitHub
parent 9580b7e6d5
commit 6225a95822
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -30,7 +30,7 @@ jobs:
- name: Upload sarif
uses: github/codeql-action/upload-sarif@v3
# Only upload SARIF for the latest version of Node.js
if: "always() && matrix.node-types-version == 'current' && !startsWith(github.head_ref, 'dependabot/')"
if: "!cancelled() && matrix.node-types-version == 'current' && !startsWith(github.head_ref, 'dependabot/')"
with:
sarif_file: eslint.sarif
category: eslint