Compare commits
10 Commits
528ff25aaf
...
2097f42252
Author | SHA1 | Date |
---|---|---|
giles | 2097f42252 | |
gilesb | 8fe72c326a | |
gilesb | 96481d4792 | |
gilesb | c3cd89d688 | |
gilesb | 1dc2d3bbc4 | |
gilesb | 99805e37fd | |
gilesb | 6528fcac86 | |
gilesb | f4172e552c | |
gilesb | 1dcebf80fa | |
gilesb | 569b235726 |
|
@ -42,11 +42,9 @@ jobs:
|
||||||
echo $(git branch -r | grep -Fx " origin/${{ env.DEVELOPMENT_BRANCH }}" | wc -c)
|
echo $(git branch -r | grep -Fx " origin/${{ env.DEVELOPMENT_BRANCH }}" | wc -c)
|
||||||
- name: push
|
- name: push
|
||||||
run: |
|
run: |
|
||||||
git add -A
|
|
||||||
git commit -a -m "${{ github.ref_name }} -> ${{ env.DEVELOPMENT_BRANCH }} "
|
|
||||||
|
|
||||||
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
|
git rebase origin/master --strategy-option theirs
|
||||||
|
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;
|
||||||
|
@ -61,23 +59,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 clone ${{ github.serverUrl }}/${{ github.repository }} ../cloned
|
git rebase origin/${{ env.DEVELOPMENT_BRANCH }} --strategy-option theirs
|
||||||
git -C ../cloned fetch origin #--depth=1
|
|
||||||
git -C ../cloned branch -r
|
|
||||||
git -C ../cloned checkout $DEVELOPMENT_BRANCH || git -C ../cloned checkout -b $DEVELOPMENT_BRANCH
|
|
||||||
mv ../cloned/.git ..
|
|
||||||
rm -rf ../cloned
|
|
||||||
cp -r . ../cloned
|
|
||||||
rm -rf ../cloned/.git
|
|
||||||
mv ../.git ../cloned
|
|
||||||
mv .git/config ../cloned/.git
|
|
||||||
rm -r ./*
|
|
||||||
rm -r .git
|
|
||||||
mv ../cloned/* .
|
|
||||||
mv ../cloned/.git .
|
|
||||||
git status
|
|
||||||
git add -A
|
|
||||||
git commit -a -m "${{ github.ref_name }} -> ${{ env.DEVELOPMENT_BRANCH }}"
|
|
||||||
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 }}
|
git rebase origin/${{ env.BUILD_BRANCH }} --strategy-option theirs
|
||||||
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,6 +55,7 @@ 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
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
- Type: '0'
|
- Type: '0'
|
||||||
- EnumerationSet:
|
- EnumerationSet:
|
||||||
- UniqueName: $TIMER_TYPE
|
- UniqueName: $TIMER_TYPE
|
||||||
- Type: '1'
|
- Type: '13'
|
||||||
- Member:
|
- Member:
|
||||||
- Name: COUNT_DOWN
|
- Name: COUNT_DOWN
|
||||||
- Ordinal: '0'
|
- Ordinal: '0'
|
||||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue