Computer scienceSystem administration and DevOpsCI/CD processesGitHub Actions

Conditional execution

Failure

Report a typo

What is the sequence in which the jobs are successfully executed?

name: Successful jobs 
on: push
jobs:
  Job1:
    runs-on: windows-latest
    steps:
      - run: echo one
  Job2:
    runs-on: windows-latest
    needs: Job1
    if: ${{ true }}
    steps:
      - run: echo two
  Job3:
    runs-on: ubuntu-latest
    if: ${{ ! failure() }}
    needs: Job2
    steps:
      - run: echo three
Select one option from the list
___

Create a free account to access the full topic