mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2024-12-28 16:27:29 +01:00
build.sh: only do ci tasks on main branch
This commit is contained in:
parent
73e07eb013
commit
22c404b320
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 New Issue
Block a user