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