13 lines · 234 B · Text
RawDownload
#!/bin/bash set -e branch=$(git rev-parse --abbrev-ref HEAD)if [ "$branch" != "main" ]; then  echo "You must be on main to run this script"  exit 1fi git pull --ff-only origin maingit tag -f nightlygit push -f origin nightly