Skip to content

Run failing - Invalid workflow file #26095

Discussion options

You must be logged in to vote

There are indentation problems in your workflow. In YAML indentation determines structure, like in Python. Your name, uses, and with settings need to be part of the same object (the step), so they must be on the same indentation level. Same for name and run in the steps below, like so:

- name: Use node
  uses: actions/setup-node@v2
  with:
    node-version: '12.13.0'
    check-latest: true
- name: Install dependencies
  run: npm ci

Replies: 4 comments 7 replies

Comment options

You must be logged in to vote
5 replies
@hasanbadshah
Comment options

@airtower-luna
Comment options

@hasanbadshah
Comment options

@airtower-luna
Comment options

@hasanbadshah
Comment options

Answer selected
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@hasanbadshah
Comment options

Comment options

You must be logged in to vote
1 reply
@brenodobroski
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
5 participants