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 fb608d5 commit e858b07
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,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 @@ -94,6 +96,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
2 changes: 2 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}

- name: Initialize CodeQL
uses: github/codeql-action/init@v3
Expand Down

0 comments on commit e858b07

Please sign in to comment.