-
Notifications
You must be signed in to change notification settings - Fork 578
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9920 from Icinga/gha2139
Update GitHub actions
- Loading branch information
Showing
8 changed files
with
54 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: AUTHORS file | ||
|
||
on: | ||
pull_request: { } | ||
|
||
jobs: | ||
authors-file: | ||
name: AUTHORS file | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout HEAD | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Check whether ./AUTHORS is up-to-date | ||
run: | | ||
set -exo pipefail | ||
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 | ||
sort -uo AUTHORS AUTHORS | ||
git diff AUTHORS >> AUTHORS.diff | ||
- name: Complain if ./AUTHORS isn't up-to-date | ||
run: | | ||
if [ -s AUTHORS.diff ]; then | ||
cat <<'EOF' >&2 | ||
There are the following new authors. If the commit author data is correct, | ||
either add them to the AUTHORS file or update .mailmap. See gitmailmap(5) or: | ||
https://git-scm.com/docs/gitmailmap | ||
Don't hesitate to ask us for help if necessary. | ||
EOF | ||
cat AUTHORS.diff | ||
exit 1 | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -149,6 +149,7 @@ Lennart Betz <[email protected]> | |
Leon Stringer <[email protected]> | ||
lihan <[email protected]> | ||
log1-c <[email protected]> | ||
Lord Hepipud <[email protected]> | ||
Lorenz Kästle <[email protected]> | ||
Louis Sautier <[email protected]> | ||
Luca Lesinigo <[email protected]> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters