Harden self-hosted CI workflow reliability

This commit is contained in:
Jeppe B
2026-04-24 00:10:10 +02:00
parent 1c647bb78b
commit d9ed1ff9de
2 changed files with 52 additions and 111 deletions
+2 -2
View File
@@ -16,9 +16,9 @@ jobs:
pull-requests: write
checks: write
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }} # to check out the actual pull request commit, not the merge commit
ref: ${{ github.event.pull_request.head.sha || github.sha }} # Use PR head when available, otherwise the pushed SHA.
fetch-depth: 0 # a full history is required for pull request analysis
- name: Prepare Qodana cache directories
run: |