Computer scienceSystem administration and DevOpsCI/CD processesGitHub Actions

Conditional execution

Prevent failure

Report a typo

What should you add to the following YAML file so that the workflow does not fail?

name: Prevent failure
on: push
jobs:
  first:
    runs-on: ubuntu-latest
    steps:
      - id: step1
        run: exit 1
      - run: echo "Hello world!"
Select one option from the list
___

Create a free account to access the full topic