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
|
||||
shell: pwsh
|
||||
run: |
|
||||
rustup toolchain install stable --profile minimal -y
|
||||
rustup toolchain install stable --profile minimal
|
||||
rustup default stable
|
||||
rustup target add x86_64-pc-windows-msvc
|
||||
|
||||
|
|
@ -124,23 +124,20 @@ jobs:
|
|||
- name: Änderungsliste seit dem letzten Tag ermitteln (nur bei Versions-Tag)
|
||||
if: startsWith(github.ref, 'refs/tags/v')
|
||||
id: changelog
|
||||
shell: bash
|
||||
shell: pwsh
|
||||
run: |
|
||||
set -e
|
||||
CURRENT_TAG="${GITHUB_REF_NAME}"
|
||||
PREV_TAG=$(git tag --sort=-v:refname | grep -v "^${CURRENT_TAG}$" | head -n 1)
|
||||
echo "Aktueller Tag: ${CURRENT_TAG}"
|
||||
echo "Vorheriger Tag: ${PREV_TAG:-keiner, es ist das erste Release}"
|
||||
{
|
||||
echo "changelog<<CHANGELOG_EOF"
|
||||
if [ -n "$PREV_TAG" ]; then
|
||||
git log --pretty=format:"- %s" "${PREV_TAG}..${CURRENT_TAG}"
|
||||
else
|
||||
git log --pretty=format:"- %s" "${CURRENT_TAG}"
|
||||
fi
|
||||
echo ""
|
||||
echo "CHANGELOG_EOF"
|
||||
} >> "$GITHUB_OUTPUT"
|
||||
$ErrorActionPreference = "Stop"
|
||||
$currentTag = "${{ github.ref_name }}"
|
||||
$prevTag = git tag --sort=-v:refname | Where-Object { $_ -ne $currentTag } | Select-Object -First 1
|
||||
Write-Host "Aktueller Tag: $currentTag"
|
||||
Write-Host "Vorheriger Tag: $(if ($prevTag) { $prevTag } else { 'keiner, es ist das erste Release' })"
|
||||
if ($prevTag) {
|
||||
$log = git log --pretty=format:"- %s" "$prevTag..$currentTag"
|
||||
} else {
|
||||
$log = git log --pretty=format:"- %s" "$currentTag"
|
||||
}
|
||||
$changelog = "changelog<<CHANGELOG_EOF`n$($log -join "`n")`nCHANGELOG_EOF"
|
||||
Add-Content -Path $env:GITHUB_OUTPUT -Value $changelog
|
||||
|
||||
- name: Bauen und signieren (nur bei Versions-Tag)
|
||||
if: startsWith(github.ref, 'refs/tags/v')
|
||||
|
|
|
|||
Loading…
Reference in a new issue