From e3199a06ec8cceefea40a74f00f9679ec617cc81 Mon Sep 17 00:00:00 2001 From: gilesb Date: Wed, 25 Oct 2023 12:05:09 +0100 Subject: [PATCH 01/14] test-push --- .gitea/workflows/master-pushed.yml | 2 ++ .gitea/workflows/test-push.yml | 43 ++++++++++++++++++++++++++++++ 2 files changed, 45 insertions(+) create mode 100644 .gitea/workflows/test-push.yml diff --git a/.gitea/workflows/master-pushed.yml b/.gitea/workflows/master-pushed.yml index f1fd6be..f7a4b9c 100644 --- a/.gitea/workflows/master-pushed.yml +++ b/.gitea/workflows/master-pushed.yml @@ -20,7 +20,9 @@ jobs: - name: bump release run: | ../tea r ls -o=simple + ../tea r ls -o=simple | head -n 1 | tr " " "\n" | head -n 1 | awk -F. '{$NF = $NF + 1;} 1' | sed 's/ /./g' version="$(../tea r ls -o=simple | head -n 1 | tr " " "\n" | head -n 1 | awk -F. '{$NF = $NF + 1;} 1' | sed 's/ /./g')" + echo $version ../tea r c --note="this isrelease ${version}" --tag=${version} --title=${version} --target=${{ github.sha }} echo ::set-env name=VERSION::$version - name: Run latest-tag diff --git a/.gitea/workflows/test-push.yml b/.gitea/workflows/test-push.yml new file mode 100644 index 0000000..7a656bd --- /dev/null +++ b/.gitea/workflows/test-push.yml @@ -0,0 +1,43 @@ +name: build-develop-branch +run-name: ${{ github.actor }} is learning GitHub Actions +on: + push: + +jobs: + new release: + runs-on: ubuntu-latest + steps: + - name: get tea + run: | + 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 }} + - uses: http://sigyl.com:3000/actions/checkout@v3.5.4 + with: + token: ${{ secrets.BOT_TOKEN }} + - name: bump release + run: | + ../tea r ls -o=simple + ../tea r ls -o=simple | head -n 1 | tr " " "\n" | head -n 1 | awk -F. '{$NF = $NF + 1;} 1' | sed 's/ /./g' + version="$(../tea r ls -o=simple | head -n 1 | tr " " "\n" | head -n 1 | awk -F. '{$NF = $NF + 1;} 1' | sed 's/ /./g')" + echo $version + # ../tea r c --note="this isrelease ${version}" --tag=${version} --title=${version} --target=${{ github.sha }} + echo ::set-env name=VERSION::$version + - name: Run latest-tag + uses: EndBug/latest-tag@latest + with: + # You can change the name of the tag or branch with this input. + # Default: 'latest' + #ref: someCustomTagName + + # If a description is provided, the action will use it to create an annotated tag. If none is given, the action will create a lightweight tag. + # Default: '' + description: ${{ env.VERSION }} + + # Force-update a branch instead of using a tag. + # Default: false + # force-branch: true + + # Directory to use when executing git commands + # Default: '${{ github.workspace }}' + # git-directory: 'path/to/repo/dir' From 7dbab1a28f68f01bf27e62ca275464e6aee17ae3 Mon Sep 17 00:00:00 2001 From: gilesb Date: Wed, 25 Oct 2023 12:07:16 +0100 Subject: [PATCH 02/14] test-push --- .gitea/workflows/{develop-build.yml => develop-build.-ml} | 0 .gitea/workflows/test-push.yml | 1 + 2 files changed, 1 insertion(+) rename .gitea/workflows/{develop-build.yml => develop-build.-ml} (100%) diff --git a/.gitea/workflows/develop-build.yml b/.gitea/workflows/develop-build.-ml similarity index 100% rename from .gitea/workflows/develop-build.yml rename to .gitea/workflows/develop-build.-ml diff --git a/.gitea/workflows/test-push.yml b/.gitea/workflows/test-push.yml index 7a656bd..32e04ce 100644 --- a/.gitea/workflows/test-push.yml +++ b/.gitea/workflows/test-push.yml @@ -20,6 +20,7 @@ jobs: ../tea r ls -o=simple ../tea r ls -o=simple | head -n 1 | tr " " "\n" | head -n 1 | awk -F. '{$NF = $NF + 1;} 1' | sed 's/ /./g' version="$(../tea r ls -o=simple | head -n 1 | tr " " "\n" | head -n 1 | awk -F. '{$NF = $NF + 1;} 1' | sed 's/ /./g')" + echo it failed silently echo $version # ../tea r c --note="this isrelease ${version}" --tag=${version} --title=${version} --target=${{ github.sha }} echo ::set-env name=VERSION::$version From 47695a0523f4a70299d91aa2d20a505731334771 Mon Sep 17 00:00:00 2001 From: gilesb Date: Wed, 25 Oct 2023 12:08:49 +0100 Subject: [PATCH 03/14] test-push --- .gitea/workflows/test-push.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/test-push.yml b/.gitea/workflows/test-push.yml index 32e04ce..1d047f1 100644 --- a/.gitea/workflows/test-push.yml +++ b/.gitea/workflows/test-push.yml @@ -19,7 +19,8 @@ jobs: run: | ../tea r ls -o=simple ../tea r ls -o=simple | head -n 1 | tr " " "\n" | head -n 1 | awk -F. '{$NF = $NF + 1;} 1' | sed 's/ /./g' - version="$(../tea r ls -o=simple | head -n 1 | tr " " "\n" | head -n 1 | awk -F. '{$NF = $NF + 1;} 1' | sed 's/ /./g')" + echo it didnt failed silently + export version=$(../tea r ls -o=simple | head -n 1 | tr " " "\n" | head -n 1 | awk -F. '{$NF = $NF + 1;} 1' | sed 's/ /./g') echo it failed silently echo $version # ../tea r c --note="this isrelease ${version}" --tag=${version} --title=${version} --target=${{ github.sha }} From d1a1d14664d1b3dcdc0be27e8425ea95ebb2304c Mon Sep 17 00:00:00 2001 From: gilesb Date: Wed, 25 Oct 2023 12:09:55 +0100 Subject: [PATCH 04/14] test-push --- .gitea/workflows/test-push.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitea/workflows/test-push.yml b/.gitea/workflows/test-push.yml index 1d047f1..e133d28 100644 --- a/.gitea/workflows/test-push.yml +++ b/.gitea/workflows/test-push.yml @@ -18,6 +18,7 @@ jobs: - name: bump release run: | ../tea r ls -o=simple + echo it didnt failed silently ../tea r ls -o=simple | head -n 1 | tr " " "\n" | head -n 1 | awk -F. '{$NF = $NF + 1;} 1' | sed 's/ /./g' echo it didnt failed silently export version=$(../tea r ls -o=simple | head -n 1 | tr " " "\n" | head -n 1 | awk -F. '{$NF = $NF + 1;} 1' | sed 's/ /./g') From e535cb3c624788ed4952b7921bc18c1f44f26d3b Mon Sep 17 00:00:00 2001 From: gilesb Date: Wed, 25 Oct 2023 12:10:49 +0100 Subject: [PATCH 05/14] test-push --- .gitea/workflows/test-push.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/test-push.yml b/.gitea/workflows/test-push.yml index e133d28..3fa8547 100644 --- a/.gitea/workflows/test-push.yml +++ b/.gitea/workflows/test-push.yml @@ -19,7 +19,7 @@ jobs: run: | ../tea r ls -o=simple echo it didnt failed silently - ../tea r ls -o=simple | head -n 1 | tr " " "\n" | head -n 1 | awk -F. '{$NF = $NF + 1;} 1' | sed 's/ /./g' + ../tea r ls -o=simple | head -n 1 | tr " " "\n" | head -n 1 | awk -F. '{$NF = $NF + 1;} 1' echo it didnt failed silently export version=$(../tea r ls -o=simple | head -n 1 | tr " " "\n" | head -n 1 | awk -F. '{$NF = $NF + 1;} 1' | sed 's/ /./g') echo it failed silently From 369b5ffd29500e9aacf835d95debbb3037f9dd01 Mon Sep 17 00:00:00 2001 From: gilesb Date: Wed, 25 Oct 2023 12:12:02 +0100 Subject: [PATCH 06/14] test-push --- .gitea/workflows/test-push.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.gitea/workflows/test-push.yml b/.gitea/workflows/test-push.yml index 3fa8547..f5b9832 100644 --- a/.gitea/workflows/test-push.yml +++ b/.gitea/workflows/test-push.yml @@ -19,9 +19,7 @@ jobs: run: | ../tea r ls -o=simple echo it didnt failed silently - ../tea r ls -o=simple | head -n 1 | tr " " "\n" | head -n 1 | awk -F. '{$NF = $NF + 1;} 1' - echo it didnt failed silently - export version=$(../tea r ls -o=simple | head -n 1 | tr " " "\n" | head -n 1 | awk -F. '{$NF = $NF + 1;} 1' | sed 's/ /./g') + version=$(../tea r ls -o=simple | head -n 1 | tr " " "\n" | head -n 1 | awk -F. '{$NF = $NF + 1;} 1' | sed 's/ /./g') echo it failed silently echo $version # ../tea r c --note="this isrelease ${version}" --tag=${version} --title=${version} --target=${{ github.sha }} From 9c8429ae689bd826b6604d2d0cb2ae11dda0b780 Mon Sep 17 00:00:00 2001 From: gilesb Date: Wed, 25 Oct 2023 12:13:22 +0100 Subject: [PATCH 07/14] test-push --- .gitea/workflows/test-push.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/test-push.yml b/.gitea/workflows/test-push.yml index f5b9832..04c9809 100644 --- a/.gitea/workflows/test-push.yml +++ b/.gitea/workflows/test-push.yml @@ -17,12 +17,10 @@ jobs: token: ${{ secrets.BOT_TOKEN }} - name: bump release run: | - ../tea r ls -o=simple - echo it didnt failed silently version=$(../tea r ls -o=simple | head -n 1 | tr " " "\n" | head -n 1 | awk -F. '{$NF = $NF + 1;} 1' | sed 's/ /./g') - echo it failed silently echo $version - # ../tea r c --note="this isrelease ${version}" --tag=${version} --title=${version} --target=${{ github.sha }} + ../tea r c --note="this isrelease ${version}" --tag=${version} --title=${version} --target=${{ github.sha }} + echo finoito echo ::set-env name=VERSION::$version - name: Run latest-tag uses: EndBug/latest-tag@latest From 6f92610c2639417a5cedab6580e74f4faaffbc4e Mon Sep 17 00:00:00 2001 From: gilesb Date: Wed, 25 Oct 2023 12:14:33 +0100 Subject: [PATCH 08/14] test-push --- .gitea/workflows/test-push.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.gitea/workflows/test-push.yml b/.gitea/workflows/test-push.yml index 04c9809..1f738c3 100644 --- a/.gitea/workflows/test-push.yml +++ b/.gitea/workflows/test-push.yml @@ -19,8 +19,7 @@ jobs: run: | version=$(../tea r ls -o=simple | head -n 1 | tr " " "\n" | head -n 1 | awk -F. '{$NF = $NF + 1;} 1' | sed 's/ /./g') echo $version - ../tea r c --note="this isrelease ${version}" --tag=${version} --title=${version} --target=${{ github.sha }} - echo finoito + #../tea r c --note="this isrelease ${version}" --tag=${version} --title=${version} --target=${{ github.sha }} echo ::set-env name=VERSION::$version - name: Run latest-tag uses: EndBug/latest-tag@latest From f75a54e273082c97d556dea1cc95ff7018b0c441 Mon Sep 17 00:00:00 2001 From: gilesb Date: Wed, 25 Oct 2023 12:15:09 +0100 Subject: [PATCH 09/14] test-push --- .gitea/workflows/test-push.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/test-push.yml b/.gitea/workflows/test-push.yml index 1f738c3..24dc429 100644 --- a/.gitea/workflows/test-push.yml +++ b/.gitea/workflows/test-push.yml @@ -17,7 +17,7 @@ jobs: token: ${{ secrets.BOT_TOKEN }} - name: bump release run: | - version=$(../tea r ls -o=simple | head -n 1 | tr " " "\n" | head -n 1 | awk -F. '{$NF = $NF + 1;} 1' | sed 's/ /./g') + export version=$(../tea r ls -o=simple | head -n 1 | tr " " "\n" | head -n 1 | awk -F. '{$NF = $NF + 1;} 1' | sed 's/ /./g') echo $version #../tea r c --note="this isrelease ${version}" --tag=${version} --title=${version} --target=${{ github.sha }} echo ::set-env name=VERSION::$version From bf4335c8b81c5bd4165714e35143bbee0dd07742 Mon Sep 17 00:00:00 2001 From: gilesb Date: Wed, 25 Oct 2023 12:16:01 +0100 Subject: [PATCH 10/14] test-push --- .gitea/workflows/test-push.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.gitea/workflows/test-push.yml b/.gitea/workflows/test-push.yml index 24dc429..52712b1 100644 --- a/.gitea/workflows/test-push.yml +++ b/.gitea/workflows/test-push.yml @@ -18,8 +18,7 @@ jobs: - name: bump release run: | export version=$(../tea r ls -o=simple | head -n 1 | tr " " "\n" | head -n 1 | awk -F. '{$NF = $NF + 1;} 1' | sed 's/ /./g') - echo $version - #../tea r c --note="this isrelease ${version}" --tag=${version} --title=${version} --target=${{ github.sha }} + ../tea r c --note="this isrelease ${version}" --tag=${version} --title=${version} --target=${{ github.sha }} echo ::set-env name=VERSION::$version - name: Run latest-tag uses: EndBug/latest-tag@latest From 6a76cd6dc27b0acaf01c7e3044778ca5ce6828be Mon Sep 17 00:00:00 2001 From: gilesb Date: Wed, 25 Oct 2023 12:17:23 +0100 Subject: [PATCH 11/14] test-push --- .gitea/workflows/develop-build.-ml | 89 ------------------------------ .gitea/workflows/test-push.yml | 18 ------ 2 files changed, 107 deletions(-) delete mode 100644 .gitea/workflows/develop-build.-ml diff --git a/.gitea/workflows/develop-build.-ml b/.gitea/workflows/develop-build.-ml deleted file mode 100644 index 6df3931..0000000 --- a/.gitea/workflows/develop-build.-ml +++ /dev/null @@ -1,89 +0,0 @@ -name: build-develop-branch -run-name: ${{ github.actor }} is learning GitHub Actions -on: - push: - branches: - - 'develop/**' -jobs: - build-branch: - runs-on: ubuntu-latest - steps: - # https://github.com/RouxAntoine/checkout/tree/v3.5.4 - - uses: http://sigyl.com:3000/actions/checkout@v3.5.4 - with: - token: ${{ secrets.BOT_TOKEN }} - fetch-depth: '10' - - env: env - run: printenv - - name: get tea - run: | - 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 }} - - uses: http://sigyl.com:3000/actions/setup-node@v3 - with: - node-version: '20' - - uses: http://sigyl.com:3000/actions/batch2yaml@master - with: - action: xml - path: '.' - - run: git fetch - - name: config - run: | - git config --global user.name "${{ github.actor }}" - git config --global user.email "${{ github.event.pusher.email }}" - - name: get build branch name - run: | - firstString=${{ github.ref_name }} - secondString="build" - echo ::set-env name=BUILD_BRANCH::${firstString/develop\//"$secondString"\/} - - name: status - run: | - ls - - name: push - run: | - git add -A - git commit -a -m "${{ github.ref_name }} -> ${{ env.BUILD_BRANCH }} " - if [[ $(git branch -r | grep -Fx " origin/${{ env.BUILD_BRANCH }}" | wc -c) -eq 0 ]]; then - git push origin HEAD:${{ env.BUILD_BRANCH }}; - else - if [[ $(git diff origin/${{ env.BUILD_BRANCH }} | wc -c) -ne 0 ]]; then - #git rebase -Xtheirs origin/${{ env.BUILD_BRANCH }} - git clone ${{ github.serverUrl }}/${{ github.repository }} ../cloned - git -C ../cloned fetch origin #--depth=1 - git -C ../cloned checkout $BUILD_BRANCH || git -C ../cloned checkout -b $BUILD_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 add -A - git commit -a -m "${{ github.ref_name }} -> ${{ env.BUILD_BRANCH }} " - git push origin HEAD:${{ env.BUILD_BRANCH }} - else - echo 'no changes so no push' - fi; - fi; - - name: make PR - run: | - ../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 - ../tea pr c --base=master --head=${{ github.ref_name }} --description=" - development pull request - this PR is will been built on [${{ github.ref_name }}](${{ github.serverUrl }}/${{ github.repository }}/src/branch/${{ env.BUILD_BRANCH }}) - " -t="WIP: ${{ github.event.head_commit.message }}" - fi - - name: get PR number - run: | - 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 - - name: make pull request comment - run: | - ../tea c $PR "this branch has been built on [${{ env.BUILD_BRANCH }}](${{ github.serverUrl }}/${{ github.repository }}/src/branch/${{ env.BUILD_BRANCH }})" - \ No newline at end of file diff --git a/.gitea/workflows/test-push.yml b/.gitea/workflows/test-push.yml index 52712b1..e0c4cee 100644 --- a/.gitea/workflows/test-push.yml +++ b/.gitea/workflows/test-push.yml @@ -20,21 +20,3 @@ jobs: export version=$(../tea r ls -o=simple | head -n 1 | tr " " "\n" | head -n 1 | awk -F. '{$NF = $NF + 1;} 1' | sed 's/ /./g') ../tea r c --note="this isrelease ${version}" --tag=${version} --title=${version} --target=${{ github.sha }} echo ::set-env name=VERSION::$version - - name: Run latest-tag - uses: EndBug/latest-tag@latest - with: - # You can change the name of the tag or branch with this input. - # Default: 'latest' - #ref: someCustomTagName - - # If a description is provided, the action will use it to create an annotated tag. If none is given, the action will create a lightweight tag. - # Default: '' - description: ${{ env.VERSION }} - - # Force-update a branch instead of using a tag. - # Default: false - # force-branch: true - - # Directory to use when executing git commands - # Default: '${{ github.workspace }}' - # git-directory: 'path/to/repo/dir' From 3f8a784ea0353013b736bcef42d6db742c11267f Mon Sep 17 00:00:00 2001 From: gilesb Date: Wed, 25 Oct 2023 12:17:58 +0100 Subject: [PATCH 12/14] test-push --- .gitea/workflows/develop-build.yml | 89 ++++++++++++++++++++++++++++++ 1 file changed, 89 insertions(+) create mode 100644 .gitea/workflows/develop-build.yml diff --git a/.gitea/workflows/develop-build.yml b/.gitea/workflows/develop-build.yml new file mode 100644 index 0000000..6df3931 --- /dev/null +++ b/.gitea/workflows/develop-build.yml @@ -0,0 +1,89 @@ +name: build-develop-branch +run-name: ${{ github.actor }} is learning GitHub Actions +on: + push: + branches: + - 'develop/**' +jobs: + build-branch: + runs-on: ubuntu-latest + steps: + # https://github.com/RouxAntoine/checkout/tree/v3.5.4 + - uses: http://sigyl.com:3000/actions/checkout@v3.5.4 + with: + token: ${{ secrets.BOT_TOKEN }} + fetch-depth: '10' + - env: env + run: printenv + - name: get tea + run: | + 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 }} + - uses: http://sigyl.com:3000/actions/setup-node@v3 + with: + node-version: '20' + - uses: http://sigyl.com:3000/actions/batch2yaml@master + with: + action: xml + path: '.' + - run: git fetch + - name: config + run: | + git config --global user.name "${{ github.actor }}" + git config --global user.email "${{ github.event.pusher.email }}" + - name: get build branch name + run: | + firstString=${{ github.ref_name }} + secondString="build" + echo ::set-env name=BUILD_BRANCH::${firstString/develop\//"$secondString"\/} + - name: status + run: | + ls + - name: push + run: | + git add -A + git commit -a -m "${{ github.ref_name }} -> ${{ env.BUILD_BRANCH }} " + if [[ $(git branch -r | grep -Fx " origin/${{ env.BUILD_BRANCH }}" | wc -c) -eq 0 ]]; then + git push origin HEAD:${{ env.BUILD_BRANCH }}; + else + if [[ $(git diff origin/${{ env.BUILD_BRANCH }} | wc -c) -ne 0 ]]; then + #git rebase -Xtheirs origin/${{ env.BUILD_BRANCH }} + git clone ${{ github.serverUrl }}/${{ github.repository }} ../cloned + git -C ../cloned fetch origin #--depth=1 + git -C ../cloned checkout $BUILD_BRANCH || git -C ../cloned checkout -b $BUILD_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 add -A + git commit -a -m "${{ github.ref_name }} -> ${{ env.BUILD_BRANCH }} " + git push origin HEAD:${{ env.BUILD_BRANCH }} + else + echo 'no changes so no push' + fi; + fi; + - name: make PR + run: | + ../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 + ../tea pr c --base=master --head=${{ github.ref_name }} --description=" + development pull request + this PR is will been built on [${{ github.ref_name }}](${{ github.serverUrl }}/${{ github.repository }}/src/branch/${{ env.BUILD_BRANCH }}) + " -t="WIP: ${{ github.event.head_commit.message }}" + fi + - name: get PR number + run: | + 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 + - name: make pull request comment + run: | + ../tea c $PR "this branch has been built on [${{ env.BUILD_BRANCH }}](${{ github.serverUrl }}/${{ github.repository }}/src/branch/${{ env.BUILD_BRANCH }})" + \ No newline at end of file From 381b1211b66295b6483aafdb43f4f355d96dbaac Mon Sep 17 00:00:00 2001 From: gilesb Date: Wed, 25 Oct 2023 12:19:20 +0100 Subject: [PATCH 13/14] test-push --- .gitea/workflows/master-pushed.yml | 25 ++----------------------- 1 file changed, 2 insertions(+), 23 deletions(-) diff --git a/.gitea/workflows/master-pushed.yml b/.gitea/workflows/master-pushed.yml index f7a4b9c..cca3fe2 100644 --- a/.gitea/workflows/master-pushed.yml +++ b/.gitea/workflows/master-pushed.yml @@ -1,4 +1,4 @@ -name: build-develop-branch +name: master-pushed run-name: ${{ github.actor }} is learning GitHub Actions on: push: @@ -19,27 +19,6 @@ jobs: token: ${{ secrets.BOT_TOKEN }} - name: bump release run: | - ../tea r ls -o=simple - ../tea r ls -o=simple | head -n 1 | tr " " "\n" | head -n 1 | awk -F. '{$NF = $NF + 1;} 1' | sed 's/ /./g' - version="$(../tea r ls -o=simple | head -n 1 | tr " " "\n" | head -n 1 | awk -F. '{$NF = $NF + 1;} 1' | sed 's/ /./g')" - echo $version + export version=$(../tea r ls -o=simple | head -n 1 | tr " " "\n" | head -n 1 | awk -F. '{$NF = $NF + 1;} 1' | sed 's/ /./g') ../tea r c --note="this isrelease ${version}" --tag=${version} --title=${version} --target=${{ github.sha }} echo ::set-env name=VERSION::$version - - name: Run latest-tag - uses: EndBug/latest-tag@latest - with: - # You can change the name of the tag or branch with this input. - # Default: 'latest' - #ref: someCustomTagName - - # If a description is provided, the action will use it to create an annotated tag. If none is given, the action will create a lightweight tag. - # Default: '' - description: ${{ env.VERSION }} - - # Force-update a branch instead of using a tag. - # Default: false - # force-branch: true - - # Directory to use when executing git commands - # Default: '${{ github.workspace }}' - # git-directory: 'path/to/repo/dir' From e9f787b82bf73995e5c0e20e598933eeda3d1e9a Mon Sep 17 00:00:00 2001 From: gilesb Date: Wed, 25 Oct 2023 12:19:52 +0100 Subject: [PATCH 14/14] test-push --- .gitea/workflows/test-push.yml | 22 ---------------------- 1 file changed, 22 deletions(-) delete mode 100644 .gitea/workflows/test-push.yml diff --git a/.gitea/workflows/test-push.yml b/.gitea/workflows/test-push.yml deleted file mode 100644 index e0c4cee..0000000 --- a/.gitea/workflows/test-push.yml +++ /dev/null @@ -1,22 +0,0 @@ -name: build-develop-branch -run-name: ${{ github.actor }} is learning GitHub Actions -on: - push: - -jobs: - new release: - runs-on: ubuntu-latest - steps: - - name: get tea - run: | - 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 }} - - uses: http://sigyl.com:3000/actions/checkout@v3.5.4 - with: - token: ${{ secrets.BOT_TOKEN }} - - name: bump release - run: | - export version=$(../tea r ls -o=simple | head -n 1 | tr " " "\n" | head -n 1 | awk -F. '{$NF = $NF + 1;} 1' | sed 's/ /./g') - ../tea r c --note="this isrelease ${version}" --tag=${version} --title=${version} --target=${{ github.sha }} - echo ::set-env name=VERSION::$version