CI: use temp branch

This commit is contained in:
Max Headroom 2022-01-31 00:04:04 +00:00
parent 6c552cdff4
commit 10c598c0ab

View file

@ -4,7 +4,10 @@ update:
- git add .
- git config user.email "ci@privatevoid.net"
- git config user.name "CI"
- git branch -D master || exit 0
- git checkout -b master
- git commit -m '[CI] Update extensions' || exit 0
- git remote add pushback gitlab@git.privatevoid.net:max/nix-crx.git || true
- chmod 400 $PUSHBACK_KEY
- GIT_SSH_COMMAND="ssh -i $PUSHBACK_KEY" git push pushback :master
- GIT_SSH_COMMAND="ssh -i $PUSHBACK_KEY" git push pushback master
- git branch -D master || exit 0