drone: follow new upstream default branch main

This commit is contained in:
teutat3s 2021-10-05 16:47:08 +02:00
parent 9d0e9efb47
commit 676bda5b9e
Signed by: teutat3s
GPG key ID: 4FA1D3FA524F22C1
2 changed files with 14 additions and 14 deletions

View file

@ -10,7 +10,7 @@ steps:
event:
- cron
cron:
- sync-master-with-upstream
- sync-main-with-upstream
environment:
GITEA_SSH_KEY:
from_secret: gitea_ssh_key
@ -21,7 +21,7 @@ steps:
- git remote add devos git@git.b12f.io:pub-solar/devos
- git remote set-url origin git@git.b12f.io:pub-solar/os
- git fetch --all
- git merge -X theirs devos/master
- git merge -X theirs devos/main
- git push origin devos
- name: "Sync $BRANCH with upstream"
@ -30,14 +30,14 @@ steps:
event:
- cron
cron:
- sync-master-with-upstream
- sync-b12f-with-master
- sync-teutat3s-with-master
- sync-main-with-upstream
- sync-b12f-with-main
- sync-teutat3s-with-main
environment:
GITEA_SSH_KEY:
from_secret: gitea_ssh_key
commands:
- git checkout origin/master
- git checkout origin/main
- ./.drone/setup_ssh.sh
- git remote set-url origin git@git.b12f.io:pub-solar/os
- ./.drone/upstream-branch.sh
@ -50,16 +50,16 @@ steps:
event:
- cron
cron:
- sync-master-with-upstream
- sync-b12f-with-master
- sync-teutat3s-with-master
- sync-main-with-upstream
- sync-b12f-with-main
- sync-teutat3s-with-main
environment:
TEA_CONFIG:
from_secret: tea_config
commands:
- mkdir -p ~/.config/tea
- echo "$$TEA_CONFIG" > ~/.config/tea/config.yml
- tea pulls create --base master --head devos
- tea pulls create --base main --head devos
- name: "Notify matrix"
image: plugins/matrix
@ -70,9 +70,9 @@ steps:
event:
- cron
cron:
- sync-master-with-upstream
- sync-b12f-with-master
- sync-teutat3s-with-master
- sync-main-with-upstream
- sync-b12f-with-main
- sync-teutat3s-with-main
settings:
homeserver: https://matrix.pub.solar
roomid: dfQBqwkhIzrFjMSsxy:pub.solar

View file

@ -4,7 +4,7 @@ set -e
set -u
LOCAL="$DRONE_BRANCH"
[ "$LOCAL" = "master" ] && UPSTREAM=origin/devos || UPSTREAM=origin/master
[ "$LOCAL" = "main" ] && UPSTREAM=origin/devos || UPSTREAM=origin/main
git fetch --all
git checkout "$LOCAL"