Merge pull request #9918 from Icinga/gha2141

Update GitHub actions
This commit is contained in:
Alexander Aleksandrovič Klimov 2023-11-24 17:26:27 +01:00 committed by GitHub
commit 0ceff4c09b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 54 additions and 6 deletions

39
.github/workflows/authors-file.yml vendored Normal file
View File

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

View File

@ -11,7 +11,7 @@ on:
- published - published
concurrency: concurrency:
group: docker-${{ github.ref }} group: docker-${{ github.event_name == 'push' && github.sha || github.ref }}
cancel-in-progress: true cancel-in-progress: true
jobs: jobs:

View File

@ -8,7 +8,7 @@ on:
pull_request: {} pull_request: {}
concurrency: concurrency:
group: linux-${{ github.ref }} group: linux-${{ github.event_name == 'push' && github.sha || github.ref }}
cancel-in-progress: true cancel-in-progress: true
jobs: jobs:
@ -27,9 +27,9 @@ jobs:
- debian:10 - debian:10
- debian:11 # and Raspbian 11 - debian:11 # and Raspbian 11
- debian:12 # and Raspbian 12 - debian:12 # and Raspbian 12
- fedora:36
- fedora:37 - fedora:37
- fedora:38 - fedora:38
- fedora:39
- opensuse/leap:15.3 # SLES 15.3 - opensuse/leap:15.3 # SLES 15.3
- opensuse/leap:15.4 # and SLES 15.4 - opensuse/leap:15.4 # and SLES 15.4
- opensuse/leap:15.5 # and SLES 15.5 - opensuse/leap:15.5 # and SLES 15.5
@ -37,8 +37,8 @@ jobs:
- rockylinux:9 # RHEL 9 - rockylinux:9 # RHEL 9
- ubuntu:20.04 - ubuntu:20.04
- ubuntu:22.04 - ubuntu:22.04
- ubuntu:22.10
- ubuntu:23.04 - ubuntu:23.04
- ubuntu:23.10
steps: steps:
- name: Checkout HEAD - name: Checkout HEAD

View File

@ -8,7 +8,7 @@ on:
pull_request: {} pull_request: {}
concurrency: concurrency:
group: rpm-${{ github.ref }} group: rpm-${{ github.event_name == 'push' && github.sha || github.ref }}
cancel-in-progress: true cancel-in-progress: true
jobs: jobs:

View File

@ -8,7 +8,7 @@ on:
pull_request: {} pull_request: {}
concurrency: concurrency:
group: windows-${{ github.ref }} group: windows-${{ github.event_name == 'push' && github.sha || github.ref }}
cancel-in-progress: true cancel-in-progress: true
jobs: jobs:

View File

@ -153,6 +153,7 @@ Lennart Betz <lennart.betz@icinga.com>
Leon Stringer <leon@priorsvle.com> Leon Stringer <leon@priorsvle.com>
lihan <tclh123@gmail.com> lihan <tclh123@gmail.com>
log1-c <24474580+log1-c@users.noreply.github.com> log1-c <24474580+log1-c@users.noreply.github.com>
Lord Hepipud <contact@lordhepipud.de>
Lorenz Kästle <lorenz.kaestle@netways.de> Lorenz Kästle <lorenz.kaestle@netways.de>
Louis Sautier <sautier.louis@gmail.com> Louis Sautier <sautier.louis@gmail.com>
Luca Lesinigo <luca@lm-net.it> Luca Lesinigo <luca@lm-net.it>

View File

@ -111,6 +111,12 @@ refs #1234
You can add multiple commits during your journey to finish your patch. You can add multiple commits during your journey to finish your patch.
Don't worry, you can squash those changes into a single commit later on. Don't worry, you can squash those changes into a single commit later on.
Ensure your name and email address in the commit metadata are correct.
In your first contribution (PR) also add them to [AUTHORS](./AUTHORS).
If those metadata changed since your last successful contribution,
you should update [AUTHORS](./AUTHORS) and [.mailmap](./.mailmap).
For the latter see [gitmailmap(5)](https://git-scm.com/docs/gitmailmap).
## <a id="contributing-pull-requests"></a> Pull Requests ## <a id="contributing-pull-requests"></a> Pull Requests
Once you've commited your changes, please update your local master Once you've commited your changes, please update your local master

View File

@ -91,6 +91,8 @@ if (-not $Env:GITHUB_ACTIONS) {
ThrowOnNativeFailure ThrowOnNativeFailure
} }
# Disable the progress bar for downloads from the Web, which will speed up the entire download process
$Global:ProgressPreference = 'SilentlyContinue';
Install-Exe -Url "https://packages.icinga.com/windows/dependencies/boost_$($BoostVersion -join '_')-msvc-${MsvcVersion}-${Env:BITS}.exe" -Dir "C:\local\boost_$($BoostVersion -join '_')-Win${Env:BITS}" Install-Exe -Url "https://packages.icinga.com/windows/dependencies/boost_$($BoostVersion -join '_')-msvc-${MsvcVersion}-${Env:BITS}.exe" -Dir "C:\local\boost_$($BoostVersion -join '_')-Win${Env:BITS}"