ci: Checkout latest merged pulls

This commit is contained in:
MarcoFalke
2025-09-04 11:21:45 +02:00
parent 689a321976
commit fa8f081af3

View File

@@ -132,8 +132,12 @@ jobs:
BASE_ROOT_DIR: ${{ github.workspace }} BASE_ROOT_DIR: ${{ github.workspace }}
steps: steps:
- name: Checkout - &CHECKOUT
name: Checkout
uses: actions/checkout@v5 uses: actions/checkout@v5
with:
# Ensure the latest merged pull request state is used, even on re-runs.
ref: &CHECKOUT_REF_TMPL ${{ github.event_name == 'pull_request' && github.ref || '' }}
- name: Clang version - name: Clang version
run: | run: |
@@ -199,8 +203,7 @@ jobs:
job-name: 'Windows native, fuzz, VS 2022' job-name: 'Windows native, fuzz, VS 2022'
steps: steps:
- name: Checkout - *CHECKOUT
uses: actions/checkout@v5
- name: Configure Developer Command Prompt for Microsoft Visual C++ - name: Configure Developer Command Prompt for Microsoft Visual C++
# Using microsoft/setup-msbuild is not enough. # Using microsoft/setup-msbuild is not enough.
@@ -310,8 +313,7 @@ jobs:
DANGER_CI_ON_HOST_FOLDERS: 1 DANGER_CI_ON_HOST_FOLDERS: 1
steps: steps:
- name: Checkout - *CHECKOUT
uses: actions/checkout@v5
- name: Configure environment - name: Configure environment
uses: ./.github/actions/configure-environment uses: ./.github/actions/configure-environment
@@ -351,8 +353,7 @@ jobs:
TEST_RUNNER_TIMEOUT_FACTOR: 40 TEST_RUNNER_TIMEOUT_FACTOR: 40
steps: steps:
- name: Checkout - *CHECKOUT
uses: actions/checkout@v5
- name: Download built executables - name: Download built executables
uses: actions/download-artifact@v4 uses: actions/download-artifact@v4
@@ -493,8 +494,7 @@ jobs:
file-env: './ci/test/00_setup_env_native_msan.sh' file-env: './ci/test/00_setup_env_native_msan.sh'
steps: steps:
- name: Checkout - *CHECKOUT
uses: actions/checkout@v5
- name: Configure environment - name: Configure environment
uses: ./.github/actions/configure-environment uses: ./.github/actions/configure-environment
@@ -537,6 +537,7 @@ jobs:
- name: Checkout - name: Checkout
uses: actions/checkout@v5 uses: actions/checkout@v5
with: with:
ref: *CHECKOUT_REF_TMPL
fetch-depth: 0 fetch-depth: 0
- name: Configure Docker - name: Configure Docker