Merge pull request #9976 from Al2Klimov/Al2Klimov-patch-42

GHA AUTHORS check: handle PRs from forks
This commit is contained in:
Julian Brost 2024-01-22 16:30:18 +01:00 committed by GitHub
commit 01a6c4c1ce
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -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