Compare commits
4 Commits
7331c6388a
...
15a9696d4c
Author | SHA1 | Date |
---|---|---|
Continuous Integration | 15a9696d4c | |
giles | 3555ddf195 | |
giles | 8633b3478c | |
giles | 874fbab8ab |
|
@ -49,7 +49,8 @@ jobs:
|
|||
CI_COMMIT_AUTHOR: Continuous Integration
|
||||
run: |
|
||||
if [[ $(git branch -r | grep -Fx origin/${{ env.DEVELOPMENT_BRANCH }} | wc -c) -eq 0 ]]; then
|
||||
git push origin HEAD:${{ env.DEVELOPMENT_BRANCH }};
|
||||
echo no development branch so pushing
|
||||
git push origin -f 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 }};
|
||||
|
@ -59,7 +60,7 @@ jobs:
|
|||
echo 'pushed new branch and created pr';
|
||||
else
|
||||
if [[ $(git diff origin/${{ env.DEVELOPMENT_BRANCH }} | wc -c) -ne 0 ]]; then
|
||||
git push origin HEAD:${{ env.DEVELOPMENT_BRANCH }};
|
||||
git push -f origin HEAD:${{ env.DEVELOPMENT_BRANCH }};
|
||||
else
|
||||
echo 'no changes so no push'
|
||||
fi;
|
||||
|
|
|
@ -27,7 +27,6 @@ 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
|
||||
|
|
Loading…
Reference in New Issue