Computer scienceSystem administration and DevOpsCI/CD processesGitHub Actions

Conditional execution

Always

Report a typo

Which job(s) will be successfully executed?

name: Always
on: push
jobs:
  Job1:
    runs-on: windows-latest
    steps:
      - run: echo one
  Job2:
    runs-on: windows-latest
    needs: Job1
    if: ${{ false }}
    steps:
      - run: echo two
  Job3:
    runs-on: ubuntu-latest
    if: always()
    needs: Job2
    steps:
      - run: echo three
Select one or more options from the list
___

Create a free account to access the full topic