mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2024-12-22 19:45:02 +00:00
build.sh: only do ci tasks on main branch
This commit is contained in:
parent
73e07eb013
commit
22c404b320
1 changed files with 6 additions and 0 deletions
6
build.sh
6
build.sh
|
@ -1,6 +1,12 @@
|
|||
#!/usr/bin/env bash
|
||||
set -e;
|
||||
|
||||
current_branch="$(git rev-parse --abbrev-ref HEAD)";
|
||||
|
||||
if [[ "${1}" == "ci" ]] && [[ "${current_branch}" != "main" ]]; then
|
||||
echo "Skipping build, because we are currently on the branch '${current_branch}', and we only deploy on the 'main' branch.";
|
||||
fi
|
||||
|
||||
# ██████ ██ ██████ ██ ██ ██ ██ ██████
|
||||
# ██ ██ ██ ██ ██ ██ ██ ██ ██ ██
|
||||
# ██ ██ ██████ ██ ██ ██ ██ ██ ██
|
||||
|
|
Loading…
Reference in a new issue