mirror of
https://github.com/Icinga/icinga2.git
synced 2025-04-08 17:05:25 +02:00
GHA AUTHORS check: handle PRs from forks
where the ref names differ compared to own PRs. Instead refer to the base branch and the head branch via generic HEAD^<parent number> where HEAD is a merge commit.
This commit is contained in:
parent
fc4ff8b7af
commit
6ba41b01e4
4
.github/workflows/authors-file.yml
vendored
4
.github/workflows/authors-file.yml
vendored
@ -20,8 +20,8 @@ jobs:
|
||||
sort -uo AUTHORS AUTHORS
|
||||
git add AUTHORS
|
||||
git log --format='format:%aN <%aE>' "$(
|
||||
git merge-base "origin/$GITHUB_BASE_REF" "origin/$GITHUB_HEAD_REF"
|
||||
)..origin/$GITHUB_HEAD_REF" >> AUTHORS
|
||||
git merge-base HEAD^1 HEAD^2
|
||||
)..HEAD^2" >> AUTHORS
|
||||
sort -uo AUTHORS AUTHORS
|
||||
git diff AUTHORS >> AUTHORS.diff
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user