mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2025-04-28 14:15:06 +03:00
Build packages in GitHub Actions
This commit is contained in:
parent
073799d3de
commit
bc78530fcb
3 changed files with 148 additions and 33 deletions
|
@ -1,13 +1,12 @@
|
|||
#!/bin/sh
|
||||
|
||||
# Get the current branch name
|
||||
BRANCH=$(git symbolic-ref --short HEAD 2>/dev/null)
|
||||
BRANCH="$GITHUB_REF_NAME"
|
||||
if [ -z "$BRANCH" ]; then
|
||||
BRANCH=$(git symbolic-ref --short HEAD 2>/dev/null)
|
||||
fi
|
||||
|
||||
if [ -n "$APPVEYOR_PULL_REQUEST_NUMBER" ]; then
|
||||
printf "yggdrasil-pr%s" "$APPVEYOR_PULL_REQUEST_NUMBER"
|
||||
exit 0
|
||||
# Complain if the git history is not available
|
||||
elif [ $? != 0 ] || [ -z "$BRANCH" ]; then
|
||||
if [ $? != 0 ] || [ -z "$BRANCH" ]; then
|
||||
printf "yggdrasil"
|
||||
exit 0
|
||||
fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue