From 2a94d2c454b76cffef1dc6b1d9aba3e6bcd1a8ee Mon Sep 17 00:00:00 2001 From: JonJagger Date: Mon, 13 May 2024 08:50:20 +0100 Subject: [PATCH] Add workflow success|failure experiment mod --- .github/workflows/main.yml | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 14f5c4e..03da140 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -11,13 +11,12 @@ jobs: runs-on: ubuntu-latest steps: - name: step-1 from job-1 - run: + run: | echo Hello from job-1, step-1 - #exit 42 - exit 1 + exit 42 - name: step-2 from job-1 - # if: ${{ success() || failure() }} + if: ${{ success() || failure() }} run: echo Hello from job-1, step-1 @@ -34,5 +33,10 @@ jobs: echo Hello from job-2, step-2 -# plain exit-42 on job-1,step-1 and success()||failure() on job-1,step-2 means job-2 DOES run -# plain exit-42 on job-1,step-1 and NO success()||failure() on job-1,step-2 means job-1,step-2 DOES run, job-2 DOES run +# plain exit-42 on job-1,step-1 and success()||failure() on job-1,step-2 means +# job-1,step-2 runs? +# job-2 runs? + +# plain exit-42 on job-1,step-1 and NO success()||failure() on job-1,step-2 means +# job-1,step-2 runs? +# job-2 runs?