zed/script/bump-nightly

14 lines
234 B
Plaintext
Raw Normal View History

2023-11-18 04:14:48 +03:00
#!/bin/bash
set -e
2023-11-18 04:14:48 +03:00
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