diff --git a/.github/workflows/hello.yml b/.github/workflows/hello.yml index 9d8fe50..3981d87 100644 --- a/.github/workflows/hello.yml +++ b/.github/workflows/hello.yml @@ -17,6 +17,7 @@ jobs: include: - hello: AAA bye: BBB + wait: true - hello: CCC key: DDD - hello: EEE @@ -25,7 +26,11 @@ jobs: - uses: actions/checkout@v2 - name: Run a one-line script - run: | - echo HELLO ${{matrix.hello}} and BYE ${{matrix.bye}} - sleep 20 - echo HELLO ${{matrix.hello}} and BYE ${{matrix.bye}} + run: echo HELLO ${{matrix.hello}} and BYE ${{matrix.bye}} + + - name: Wait + if: matrix.wait + run: sleep 20 + + - name: Run again + run: echo HELLO ${{matrix.hello}} and BYE ${{matrix.bye}}