CI: rustup -y Flag entfernt, Changelog-Schritt von bash auf pwsh umgestellt (kein WSL auf Runner)
This commit is contained in:
parent
273c066d7e
commit
91b57441c1
1 changed files with 14 additions and 17 deletions
31
.github/workflows/build.yml
vendored
31
.github/workflows/build.yml
vendored
|
|
@ -45,7 +45,7 @@ jobs:
|
||||||
- name: Rust einrichten
|
- name: Rust einrichten
|
||||||
shell: pwsh
|
shell: pwsh
|
||||||
run: |
|
run: |
|
||||||
rustup toolchain install stable --profile minimal -y
|
rustup toolchain install stable --profile minimal
|
||||||
rustup default stable
|
rustup default stable
|
||||||
rustup target add x86_64-pc-windows-msvc
|
rustup target add x86_64-pc-windows-msvc
|
||||||
|
|
||||||
|
|
@ -124,23 +124,20 @@ jobs:
|
||||||
- name: Änderungsliste seit dem letzten Tag ermitteln (nur bei Versions-Tag)
|
- name: Änderungsliste seit dem letzten Tag ermitteln (nur bei Versions-Tag)
|
||||||
if: startsWith(github.ref, 'refs/tags/v')
|
if: startsWith(github.ref, 'refs/tags/v')
|
||||||
id: changelog
|
id: changelog
|
||||||
shell: bash
|
shell: pwsh
|
||||||
run: |
|
run: |
|
||||||
set -e
|
$ErrorActionPreference = "Stop"
|
||||||
CURRENT_TAG="${GITHUB_REF_NAME}"
|
$currentTag = "${{ github.ref_name }}"
|
||||||
PREV_TAG=$(git tag --sort=-v:refname | grep -v "^${CURRENT_TAG}$" | head -n 1)
|
$prevTag = git tag --sort=-v:refname | Where-Object { $_ -ne $currentTag } | Select-Object -First 1
|
||||||
echo "Aktueller Tag: ${CURRENT_TAG}"
|
Write-Host "Aktueller Tag: $currentTag"
|
||||||
echo "Vorheriger Tag: ${PREV_TAG:-keiner, es ist das erste Release}"
|
Write-Host "Vorheriger Tag: $(if ($prevTag) { $prevTag } else { 'keiner, es ist das erste Release' })"
|
||||||
{
|
if ($prevTag) {
|
||||||
echo "changelog<<CHANGELOG_EOF"
|
$log = git log --pretty=format:"- %s" "$prevTag..$currentTag"
|
||||||
if [ -n "$PREV_TAG" ]; then
|
} else {
|
||||||
git log --pretty=format:"- %s" "${PREV_TAG}..${CURRENT_TAG}"
|
$log = git log --pretty=format:"- %s" "$currentTag"
|
||||||
else
|
}
|
||||||
git log --pretty=format:"- %s" "${CURRENT_TAG}"
|
$changelog = "changelog<<CHANGELOG_EOF`n$($log -join "`n")`nCHANGELOG_EOF"
|
||||||
fi
|
Add-Content -Path $env:GITHUB_OUTPUT -Value $changelog
|
||||||
echo ""
|
|
||||||
echo "CHANGELOG_EOF"
|
|
||||||
} >> "$GITHUB_OUTPUT"
|
|
||||||
|
|
||||||
- name: Bauen und signieren (nur bei Versions-Tag)
|
- name: Bauen und signieren (nur bei Versions-Tag)
|
||||||
if: startsWith(github.ref, 'refs/tags/v')
|
if: startsWith(github.ref, 'refs/tags/v')
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue