1
1
mirror of https://github.com/wez/wezterm.git synced 2024-11-25 21:07:39 +03:00
wezterm/ci/create-release.sh
Orhun Parmaksız 77024fa109 ci: correctly set the tag for release description
While using here-doc, lines are not expanded for parameter expansion if
a part of starting _word_ (_EOT_ in this case) is quoted. This results
in '$name' parameter appearing in auto-generated link without expansion.
This commit removes the single quotes from here-doc thus sets the
correct tag which is retrieved by '$1'.

Signed-off-by: Orhun Parmaksız <orhunparmaksiz@gmail.com>
2022-09-06 07:13:55 -07:00

18 lines
558 B
Bash
Executable File

#!/bin/bash
set -x
name="$1"
notes=$(cat <<EOT
See https://wezfurlong.org/wezterm/changelog.html#$name for the changelog
If you're looking for nightly downloads or more detailed installation instructions:
[Windows](https://wezfurlong.org/wezterm/install/windows.html)
[macOS](https://wezfurlong.org/wezterm/install/macos.html)
[Linux](https://wezfurlong.org/wezterm/install/linux.html)
[FreeBSD](https://wezfurlong.org/wezterm/install/freebsd.html)
EOT
)
gh release view "$name" || gh release create --prerelease --notes "$notes" --title "$name" "$name"