5 Commits

Author SHA1 Message Date
90ff275009 Обновить .gitea/workflows/wf_test.yaml
All checks were successful
Test job / test-job (push) Successful in 18s
2024-04-19 18:55:48 +03:00
3cb889958f Обновить .gitea/workflows/wf_test.yaml
All checks were successful
Test job / test-job (push) Successful in 18s
2024-04-19 18:53:21 +03:00
eda31085fb Обновить .gitea/workflows/wf_test.yaml 2024-04-19 18:51:51 +03:00
9978a86d47 Обновить .gitea/workflows/wf_test.yaml
All checks were successful
Test job / test-job (push) Successful in 19s
2024-04-19 18:47:29 +03:00
3afd8bc54e Обновить .gitea/workflows/wf_test.yaml
All checks were successful
Test job / test-job (push) Successful in 18s
2024-04-19 18:41:42 +03:00

View File

@ -1,29 +1,21 @@
name: Test job
on: on:
push: push:
tags: tags:
- '*/*/*' - 'test*'
jobs: jobs:
test-job: test-job:
runs-on: alt-latest runs-on: alt-latest
outputs:
test: ${{ env.TEST }}
steps: steps:
- name: checkout - name: Parse target branch
uses: https://gitea.com/actions/checkout@v4
- name: run
run: | run: |
if test -f ${{ gitea.workspace }}/buildd.py;then testscript=$(cat ${{ gitea.workspace }}/org/alt/gitea/test);else testscript="";fi echo $EV
echo $testscript echo $RE
echo "TEST=$testscript" >> ${GITHUB_ENV} echo $RE2
- run: echo "This job's status is ${{ job.status }}" echo $BR
test-job2: env:
runs-on: alt-latest EV: ${{ toJson(gitea.event) }}
needs: test-job RE: ${{ github.ref_name }}
steps: RE2: ${{ github.ref }}
- name: check test BR: ${{ github.head_ref }}
if: ${{ needs.test-job.outputs.test == '' && true }}
run: echo "test is empty"
- name: check test2
if: ${{ needs.test-job.outputs.test != '' && true}}
run: echo "test is not empty"