....
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 - env: env
run: printenv run: printenv
- name: get tea - name: get tea
run: | uses: ./.github/tea.yml
curl https://dl.gitea.com/tea/0.9.2/tea-0.9.2-linux-386 --output ../tea secrets:
chmod +x ./tea token: ${{ secrets.BOT_TOKEN }}
./tea login add -n=this --url=${{ github.server_url}} -t=${{ secrets.BOT_TOKEN }}
- uses: http://sigyl.com:3000/actions/setup-node@v3 - uses: http://sigyl.com:3000/actions/setup-node@v3
with: with:
node-version: '20' node-version: '20'
@ -71,7 +70,6 @@ jobs:
fi; fi;
- name: make PR - name: make PR
run: | run: |
../tea login add -n=this --url=${{ github.server_url}} -t=${{ secrets.BOT_TOKEN }}
../tea pr ls -f=base,head -o=csv ../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="

View File

@ -14,10 +14,9 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: get tea - name: get tea
run: | uses: ./.github/tea.yml
curl https://dl.gitea.com/tea/0.9.2/tea-0.9.2-linux-386 --output ../tea secrets:
chmod +x ./tea token: ${{ secrets.BOT_TOKEN }}
./tea login add -n=this --url=${{ github.server_url}} -t=${{ secrets.BOT_TOKEN }}
- uses: http://sigyl.com:3000/actions/checkout@v3.5.4 - uses: http://sigyl.com:3000/actions/checkout@v3.5.4
with: with:
token: ${{ secrets.BOT_TOKEN }} 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 }}