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