We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 53917e5 commit 1b96538Copy full SHA for 1b96538
.github/workflows/compile-queries.yml
@@ -14,15 +14,13 @@ jobs:
14
15
steps:
16
- uses: actions/checkout@v3
17
- with:
18
- fetch-depth: 0
19
# calculate the merge-base with main, in a way that works both on PRs and pushes to main.
20
- name: Calculate merge-base
21
if: ${{ github.event_name == 'pull_request' }}
22
env:
23
BASE_BRANCH: ${{ github.base_ref }}
24
run: |
25
- MERGE_BASE=$(git merge-base --fork-point origin/$BASE_BRANCH)
+ MERGE_BASE=$(git cat-file commit $GITHUB_SHA | grep '^parent ' | head -1 | cut -f 2 -d " ")
26
echo "merge-base=$MERGE_BASE" >> $GITHUB_ENV
27
- name: Read CodeQL query compilation - PR
28
0 commit comments