Invalid workflow file


Hi everyone,
could someone tell me what’s wrong?

Hard to tell from a screen capture, but it looks like an indentation problem. Compare what you have to this known working example:

https://gohugo.io/hosting-and-deployment/hosting-on-github/

- name: something
  run: command
- name: another something
  run: command

This is the correct syntax. The dash is on the left, all items of the “array” under the dash have the same indentation. What you did added something like name[run] to the structure which does not exist.

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.