Compare commits
4 Commits
38d8984f59
...
0e950ce7a9
Author | SHA1 | Date |
---|---|---|
giles | 0e950ce7a9 | |
gilesb | 06e2e52961 | |
gilesb | ca29ed243c | |
gilesb | 41f1f254b2 |
|
@ -43,8 +43,7 @@ jobs:
|
||||||
- name: push
|
- name: push
|
||||||
run: |
|
run: |
|
||||||
if [[ $(git branch -r | grep -Fx " origin/${{ env.DEVELOPMENT_BRANCH }}" | wc -c) -eq 0 ]]; then
|
if [[ $(git branch -r | grep -Fx " origin/${{ env.DEVELOPMENT_BRANCH }}" | wc -c) -eq 0 ]]; then
|
||||||
git rebase origin/master --strategy-option theirs
|
git rebase origin/master --strategy ours
|
||||||
git log -5
|
|
||||||
echo no development branch so pushing
|
echo no development branch so pushing
|
||||||
git push origin 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;
|
curl https://dl.gitea.com/tea/0.9.2/tea-0.9.2-linux-386 --output tea;
|
||||||
|
@ -59,7 +58,7 @@ jobs:
|
||||||
echo 'pushed new branch and created pr';
|
echo 'pushed new branch and created pr';
|
||||||
else
|
else
|
||||||
if [[ $(git diff origin/${{ env.DEVELOPMENT_BRANCH }} | wc -c) -ne 0 ]]; then
|
if [[ $(git diff origin/${{ env.DEVELOPMENT_BRANCH }} | wc -c) -ne 0 ]]; then
|
||||||
git rebase origin/${{ env.DEVELOPMENT_BRANCH }} --strategy-option theirs
|
git rebase origin/${{ env.DEVELOPMENT_BRANCH }} --strategy-option ours
|
||||||
git push origin HEAD:${{ env.DEVELOPMENT_BRANCH }};
|
git push origin HEAD:${{ env.DEVELOPMENT_BRANCH }};
|
||||||
else
|
else
|
||||||
echo 'no changes so no push'
|
echo 'no changes so no push'
|
||||||
|
|
|
@ -44,7 +44,7 @@ jobs:
|
||||||
git push origin HEAD:${{ env.BUILD_BRANCH }};
|
git push origin HEAD:${{ env.BUILD_BRANCH }};
|
||||||
else
|
else
|
||||||
if [[ $(git diff origin/${{ env.BUILD_BRANCH }} | wc -c) -ne 0 ]]; then
|
if [[ $(git diff origin/${{ env.BUILD_BRANCH }} | wc -c) -ne 0 ]]; then
|
||||||
git rebase origin/${{ env.BUILD_BRANCH }} --strategy-option theirs
|
git rebase origin/${{ env.BUILD_BRANCH }}
|
||||||
git push origin HEAD:${{ env.BUILD_BRANCH }}
|
git push origin HEAD:${{ env.BUILD_BRANCH }}
|
||||||
else
|
else
|
||||||
echo 'no changes so no push'
|
echo 'no changes so no push'
|
||||||
|
@ -55,7 +55,6 @@ jobs:
|
||||||
curl https://dl.gitea.com/tea/0.9.2/tea-0.9.2-linux-386 --output tea
|
curl https://dl.gitea.com/tea/0.9.2/tea-0.9.2-linux-386 --output tea
|
||||||
chmod +x ./tea
|
chmod +x ./tea
|
||||||
./tea login add -n=this --url=${{ github.server_url}} -t=${{ secrets.BOT_TOKEN }}
|
./tea login add -n=this --url=${{ github.server_url}} -t=${{ secrets.BOT_TOKEN }}
|
||||||
./tea pr ls -f=base,head -o=csv
|
|
||||||
if [[ $(./tea pr ls -f=base,head -o=csv | grep "\"master\",\"${{ github.ref_name }}\"" | head -c1 | wc -c) -eq 0 ]]; then
|
if [[ $(./tea pr ls -f=base,head -o=csv | grep "\"master\",\"${{ github.ref_name }}\"" | head -c1 | wc -c) -eq 0 ]]; then
|
||||||
./tea pr c --base=master --head=${{ github.ref_name }} --description="
|
./tea pr c --base=master --head=${{ github.ref_name }} --description="
|
||||||
development pull request
|
development pull request
|
||||||
|
|
|
@ -135,7 +135,7 @@
|
||||||
- Required: '0'
|
- Required: '0'
|
||||||
- ApproveSignatureTemplateName: null
|
- ApproveSignatureTemplateName: null
|
||||||
- RevertSignatureTemplateName: null
|
- RevertSignatureTemplateName: null
|
||||||
- Description: Confirmation by the author of the recipe thatcdcscsvdsvdsvsxsxsdit is ready for h v vredcdview.s...gfhhh....
|
- Description: Confirmation by the author of the recipe tgbghatcdcscsvdsvdsvsxsxsdit is ready for h v vredcdview.s...gfhhh....
|
||||||
- RecipeApprovalStep:
|
- RecipeApprovalStep:
|
||||||
- Name: Revi edcdw Recipe
|
- Name: Revi edcdw Recipe
|
||||||
- Id: '-3'
|
- Id: '-3'
|
||||||
|
|
Loading…
Reference in New Issue