....
build-develop-branch / build-branch (push) Failing after 10s Details

This commit is contained in:
gilesb 2023-10-23 21:24:47 +01:00
parent fce0636a7b
commit e08c5df5e7
3 changed files with 25 additions and 10 deletions

View File

@ -16,10 +16,9 @@ jobs:
- 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: ./.github/tea.yml
secrets:
token: ${{ secrets.BOT_TOKEN }}
- uses: http://sigyl.com:3000/actions/setup-node@v3
with:
node-version: '20'
@ -71,7 +70,6 @@ jobs:
fi;
- name: make PR
run: |
../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
./tea pr c --base=master --head=${{ github.ref_name }} --description="

View File

@ -13,11 +13,10 @@ jobs:
if: github.event.pull_request.merged == true
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 }}
- name: get tea
uses: ./.github/tea.yml
secrets:
token: ${{ secrets.BOT_TOKEN }}
- uses: http://sigyl.com:3000/actions/checkout@v3.5.4
with:
token: ${{ secrets.BOT_TOKEN }}

18
.gitea/workflows/tea.yml Normal file
View File

@ -0,0 +1,18 @@
name: tea
run-name: tea
on:
workflow_call:
secrets:
token:
required: true
jobs:
tea:
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.token }}