PR if not exist only
This commit is contained in:
parent
46279f91e3
commit
8ca59ed5c8
@ -140,8 +140,9 @@ steps:
|
|||||||
- |
|
- |
|
||||||
if ! git checkout bot-traduora; then
|
if ! git checkout bot-traduora; then
|
||||||
git branch bot-traduora && git checkout bot-traduora
|
git branch bot-traduora && git checkout bot-traduora
|
||||||
|
need_pr=true
|
||||||
fi
|
fi
|
||||||
git fetch
|
git pull
|
||||||
- (cd lang/ && ./sync_translation.py --client $TRADUORA_R_CLIENT --secret $TRADUORA_R_SECRET --fetch)
|
- (cd lang/ && ./sync_translation.py --client $TRADUORA_R_CLIENT --secret $TRADUORA_R_SECRET --fetch)
|
||||||
- git add lang/*
|
- git add lang/*
|
||||||
- git status
|
- git status
|
||||||
@ -150,8 +151,10 @@ steps:
|
|||||||
git remote set-url origin https://azlux:$GITHUB_API@github.com/azlux/botamusique/
|
git remote set-url origin https://azlux:$GITHUB_API@github.com/azlux/botamusique/
|
||||||
git push origin bot-traduora
|
git push origin bot-traduora
|
||||||
sleep 2
|
sleep 2
|
||||||
|
if [ ! -z $need_pr ]; then
|
||||||
GITHUB_USER="azlux" GITHUB_TOKEN="$GITHUB_API" hub pull-request -m "Bot: TRADUORA Update"
|
GITHUB_USER="azlux" GITHUB_TOKEN="$GITHUB_API" hub pull-request -m "Bot: TRADUORA Update"
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
trigger:
|
trigger:
|
||||||
event:
|
event:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user