mirror of
https://github.com/theupriser/steamify-cachyos.git
synced 2026-10-03 17:41:58 +02:00
ci: Version and changelog in the release notes
- Release title shows VERSION; notes include that version's CHANGELOG.md section. - Rename a variable in steamos-extras.sh that shellcheck confused with lib/state.sh's array in the bundle.
This commit is contained in:
1 parent
10b51644c9
commit
eb3169efa1
3 files changed
+33
-19
No files matched your search
@@ -40,14 +40,23 @@ jobs:
|
||||
env:
|
||||
GH_TOKEN: ${{ github.token }}
|
||||
run: |
|
||||
notes="Single-file build of $(git describe --always) ($(git log -1 --format=%cs)).
|
||||
version="$(grep -oP '^VERSION=\K.*' setup-gamescope-boot.sh)"
|
||||
# This version's section of CHANGELOG.md, without its heading.
|
||||
changes="$(awk -v v="$version" '
|
||||
$0 ~ "^## " { if (found) exit; if (index($0, "## " v " ") == 1) { found = 1; next } }
|
||||
found' CHANGELOG.md)"
|
||||
notes="Single-file build of v$version ($(git describe --always), $(git log -1 --format=%cs)).
|
||||
Run it with:
|
||||
|
||||
curl -fsSL https://github.com/${{ github.repository }}/releases/download/latest/setup-gamescope-boot.sh | bash"
|
||||
curl -fsSL https://github.com/${{ github.repository }}/releases/download/latest/setup-gamescope-boot.sh | bash
|
||||
|
||||
## Changes in v$version
|
||||
$changes"
|
||||
title="Latest single-file build (v$version)"
|
||||
if gh release view latest >/dev/null 2>&1; then
|
||||
gh release edit latest --notes "$notes"
|
||||
gh release edit latest --title "$title" --notes "$notes"
|
||||
else
|
||||
gh release create latest --title "Latest single-file build" --notes "$notes" --latest
|
||||
gh release create latest --title "$title" --notes "$notes" --latest
|
||||
fi
|
||||
# Move the tag to this commit and replace the asset.
|
||||
git tag -f latest && git push -f origin latest
|
||||
|
||||
Reference in new issue
Block a user