mirror of
https://github.com/X11Libre/xserver.git
synced 2026-11-01 03:03:58 +00:00
when tag xlibre-xserver-* is pushed, automatically create a github release. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
17 lines
313 B
Shell
Executable file
17 lines
313 B
Shell
Executable file
#!/bin/bash
|
|
|
|
err() {
|
|
echo "$0: $*"
|
|
}
|
|
|
|
[ "$GITHUB_REPOSITORY" ] || err "missing variable GITHUB_REPOSITORY"
|
|
|
|
TITLE=$(git tag -l --format='%(contents)' $tag)
|
|
|
|
echo "tag=$tag"
|
|
echo "title=$TITLE"
|
|
|
|
gh release create "$tag" \
|
|
--repo="$GITHUB_REPOSITORY" \
|
|
--title="$tag" \
|
|
--generate-notes
|