Add bump nightly script
This commit is contained in:
parent
dd283b471a
commit
bf324c152b
1 changed files with 11 additions and 0 deletions
11
script/bump-nightly
Executable file
11
script/bump-nightly
Executable file
|
@ -0,0 +1,11 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
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
|
Loading…
Add table
Add a link
Reference in a new issue