Skip to content

Commit

Permalink
MegaLinter: Checkout the right merge commit (AliceO2Group#1617)
Browse files Browse the repository at this point in the history
Running on the merge commit is necessary to get the right list of modified files.
  • Loading branch information
vkucera authored and cimordas committed Jan 20, 2023
1 parent 945b2ba commit 3134d50
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/mega-linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ jobs:
# Checkout the HEAD of the PR instead of the merge commit.
# This may include unrelated files if the PR branch is not up to date with the upstream.
# ref: ${{ github.event.pull_request.head.sha }}
# Checkout the merge commit.
ref: refs/pull/${{ github.event.number }}/merge
fetch-depth: 0
# So we can use secrets.ALIBUILD_GITHUB_TOKEN to push later.
persist-credentials: false
Expand Down

0 comments on commit 3134d50

Please sign in to comment.