Compare commits
5 Commits
Author | SHA1 | Date | |
---|---|---|---|
90ff275009 | |||
3cb889958f | |||
eda31085fb | |||
9978a86d47 | |||
3afd8bc54e |
@ -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"
|
|
Reference in New Issue
Block a user