projects
/
feed
/
packages.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
29ad225
)
CI: checkout HEAD commit rather than merge commit
author
Paul Spooren
<
[email protected]
>
Fri, 5 Mar 2021 09:16:00 +0000
(23:16 -1000)
committer
Josef Schlehofer
<
[email protected]
>
Sun, 21 Aug 2022 21:33:12 +0000
(23:33 +0200)
GitHub CI actions/checkout uses a merge commit which isn't compatible
with our formality checks. Instead checkout the pull request HEAD.
Signed-off-by: Paul Spooren <
[email protected]
>
(cherry picked from commit
13c1f2bcda33ab8fc17ede1f43f60e0aac8b7cab
)
.github/workflows/formal.yml
patch
|
blob
|
history
diff --git
a/.github/workflows/formal.yml
b/.github/workflows/formal.yml
index 7a7a6b0aa14031aaded560c2db8d32aa98deb19c..25609174e8ae6f9dee01640924d2ae26be440d83 100644
(file)
--- a/
.github/workflows/formal.yml
+++ b/
.github/workflows/formal.yml
@@
-13,6
+13,7
@@
jobs:
steps:
- uses: actions/checkout@v2
with:
+ ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0
- name: Determine branch name
@@
-23,9
+24,6
@@
jobs:
- name: Test formalities
run: |
- # remove GitHubs merge commit
- git rebase "origin/$BRANCH"
-
source .github/workflows/ci_helpers.sh
RET=0