Skip to content

Commit

Permalink
[CI] Ensure that the HEAD of the PR branch is checked out instead of …
Browse files Browse the repository at this point in the history
…the generated merge commit.
  • Loading branch information
vyazelenko committed Feb 21, 2024
1 parent 3e22c2e commit 04d1038
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Cache Gradle dependencies
uses: actions/cache@v4
with:
Expand Down Expand Up @@ -76,6 +78,8 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Cache Gradle dependencies
uses: actions/cache@v4
with:
Expand Down Expand Up @@ -119,6 +123,8 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Cache Gradle dependencies
uses: actions/cache@v4
with:
Expand Down Expand Up @@ -154,6 +160,8 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Cache Gradle dependencies
uses: actions/cache@v4
with:
Expand Down Expand Up @@ -190,6 +198,8 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Cache Gradle dependencies
uses: actions/cache@v4
with:
Expand Down Expand Up @@ -228,6 +238,8 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Cache Gradle dependencies
uses: actions/cache@v4
with:
Expand Down Expand Up @@ -266,6 +278,8 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Install CMake
run: |
curl -O -L https://github.com/Kitware/CMake/releases/download/v${CMAKE_VERSION}/cmake-${CMAKE_VERSION}-Darwin-x86_64.tar.gz
Expand All @@ -287,6 +301,8 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Install CMake
run: |
$client = new-object System.Net.WebClient
Expand All @@ -306,6 +322,8 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Cache Gradle dependencies
uses: actions/cache@v4
with:
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Cache Gradle dependencies
uses: actions/cache@v4
with:
Expand Down Expand Up @@ -93,6 +95,8 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Cache Gradle dependencies
uses: actions/cache@v4
with:
Expand Down Expand Up @@ -149,6 +153,8 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Cache Gradle dependencies
uses: actions/cache@v4
with:
Expand Down

0 comments on commit 04d1038

Please sign in to comment.