zed/script/bump-nightly
Max Brunsfeld 6e84f740aa Set -e in bump-nightly script
Co-authored-by: Mikayla <mikayla@zed.dev>
2023-11-20 11:01:37 -08:00

14 lines
234 B
Bash
Executable File

#!/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 1
fi
git pull --ff-only origin main
git tag -f nightly
git push -f origin nightly