build(release): update master branch automatically

This commit is contained in:
Elian Doran 2025-02-22 14:25:31 +02:00
parent 899ad6450a
commit 50d491b432
No known key found for this signature in database

View File

@ -1,7 +1,5 @@
#!/usr/bin/env bash #!/usr/bin/env bash
export GITHUB_REPO=trilium
if [[ $# -eq 0 ]] ; then if [[ $# -eq 0 ]] ; then
echo "Missing argument of new version" echo "Missing argument of new version"
exit 1 exit 1
@ -47,3 +45,11 @@ echo "Tagging commit with $TAG"
git tag $TAG git tag $TAG
git push origin $TAG git push origin $TAG
echo "Updating master"
git fetch
git checkout master
git reset --hard origin/master
git merge origin/develop
git push