Featured image of post Github Actions could not parse as YAML: mapping values are not allowed in this context

Github Actions could not parse as YAML: mapping values are not allowed in this context

===

Github actions may be a source of luck and fun or pain.

The moments when it does not accept your workflow file are the the worst amongs them.

Help is on the way

Firstly , there is GitHub Action-LINT , so there is no more push-check-push-check necessary anymore as it works instant in your browser. GitHub Action LINT with mapping values are not allowed error

In the current case, the indent of the beging of the words need to be matched , so here is a line-by-line comparison

Wrong Correct
Failed Gitlab CI Indentation Working Gitlab CI Indentation
Action-LINT shows a dot next to the line , since run: is errnously placed one whitespace too much to the right. This often happens when the colons ( : ) are placed directly over each other Action LINT does not complain when run: and name: have the proper indentation and the first characters are directly above each other

You are using gitlab ?

Cool for you ,

Happy Coding

Licensed under CC BY-NC-SA 4.0
      ...