Compare commits

..

1 Commits

Author SHA1 Message Date
Continuous Integration 7331c6388a build/16 -> develop/16
build-develop-branch / build-branch (push) Successful in 29s Details
2023-10-23 10:59:21 +00:00
2 changed files with 3 additions and 3 deletions

View File

@ -49,8 +49,7 @@ jobs:
CI_COMMIT_AUTHOR: Continuous Integration
run: |
if [[ $(git branch -r | grep -Fx origin/${{ env.DEVELOPMENT_BRANCH }} | wc -c) -eq 0 ]]; then
echo no development branch so pushing
git push origin -f HEAD:${{ env.DEVELOPMENT_BRANCH }};
git push origin HEAD:${{ env.DEVELOPMENT_BRANCH }};
curl https://dl.gitea.com/tea/0.9.2/tea-0.9.2-linux-386 --output tea;
chmod +x ./tea;
./tea login add -n=this --url=${{ github.server_url}} -t=${{ secrets.BOT_TOKEN }};
@ -60,7 +59,7 @@ jobs:
echo 'pushed new branch and created pr';
else
if [[ $(git diff origin/${{ env.DEVELOPMENT_BRANCH }} | wc -c) -ne 0 ]]; then
git push -f origin HEAD:${{ env.DEVELOPMENT_BRANCH }};
git push origin HEAD:${{ env.DEVELOPMENT_BRANCH }};
else
echo 'no changes so no push'
fi;

View File

@ -27,6 +27,7 @@ jobs:
./tea login add -n=this --url=${{ github.server_url}} -t=${{ secrets.BOT_TOKEN }}
pr=$(./tea pr ls -f=base,head,index -o csv | grep "\"master\",\"${{ github.ref_name }}\"" | tr -d ' ' | tr "," "\n" | head -n 4 | tail -1)
export PR="${pr//[\"\'\`]/}"
echo ::set-env name=PR::$PR
rm ./tea
- run: git fetch
- name: get build branch name