From 03ff5682347f2e9a69bfb1a4e0b098a7c8a6bf4e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=A5=E6=B5=A9?= Date: Fri, 11 Oct 2024 16:22:40 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9Ejob3=EF=BC=8C=E5=9F=BA?= =?UTF-8?q?=E4=BA=8Ejob1=E7=9A=84=E8=BE=93=E5=87=BA=E6=9D=A1=E4=BB=B6?= =?UTF-8?q?=E6=89=A7=E8=A1=8C=E6=AD=A5=E9=AA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/测试needs.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/测试needs.yaml b/.github/workflows/测试needs.yaml index 2094256..d76853c 100644 --- a/.github/workflows/测试needs.yaml +++ b/.github/workflows/测试needs.yaml @@ -24,3 +24,12 @@ jobs: run: | echo "step3" echo "step1-output: ${{ needs.job1.outputs.job1-output }}" + job3: + needs: job1 + if: ${{ needs.job1.outputs.job1-output != 'step1-output-value' }} + runs-on: ubuntu-latest + steps: + - name: step4 + run: | + echo "step4" + echo "step1-output: ${{ needs.job1.outputs.job1-output }}" \ No newline at end of file