测试needs.yaml
This commit is contained in:
26
.github/workflows/测试needs.yaml
vendored
Normal file
26
.github/workflows/测试needs.yaml
vendored
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
on:
|
||||||
|
push:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
job1:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
outputs:
|
||||||
|
job1-output: ${{ steps.step1.outputs.job1-output }}
|
||||||
|
steps:
|
||||||
|
- name: step1
|
||||||
|
id: step1
|
||||||
|
run: |
|
||||||
|
echo "step1"
|
||||||
|
echo "step1-output=step1-output-value" >> $GITHUB_OUTPUT
|
||||||
|
- name: step2
|
||||||
|
run: |
|
||||||
|
echo "step2"
|
||||||
|
echo "step1-output: ${{ steps.step1.outputs.job1-output }}"
|
||||||
|
job2:
|
||||||
|
needs: job1
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: step3
|
||||||
|
run: |
|
||||||
|
echo "step3"
|
||||||
|
echo "step1-output: ${{ needs.job1.outputs.job1-output }}"
|
Reference in New Issue
Block a user