mirror of
https://github.com/X11Libre/xserver.git
synced 2026-01-28 23:04:07 +00:00
when tag xlibre-xserver-* is pushed, automatically create a github release. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
18 lines
313 B
Bash
Executable File
18 lines
313 B
Bash
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
|