Platane / snk

🟩⬜ Generates a snake game from a github user contributions graph and output a screen capture as animated svg or gif
https://platane.github.io/snk
4.22k stars 1.03k forks source link

Invalid type and bad indentation errors #52

Closed askiiart closed 1 year ago

askiiart commented 1 year ago

I'm trying to do the svg-only version of this, so I put this in my file:

- uses: Platane/snk/svg-only@v2
  with:
    outputs:
      dist/github-snake.svg
      dist/github-snake-dark.svg?palette=github-dark

That gives me the error "Invalid type found: object was expected but an array was found"

So then I fixed that by remove the - before uses:, making it this:

uses: Platane/snk/svg-only@v2
  with:
    outputs:
      dist/github-snake.svg
      dist/github-snake-dark.svg?palette=github-dark

But then I get the error "bad indentation of a mapping entry"

Platane commented 1 year ago

you forgot the |

uses: Platane/snk/svg-only@v2
  with:
    outputs: |  # <---- !
      dist/github-snake.svg
      dist/github-snake-dark.svg?palette=github-dark

outputs is actually a multi line string, gh action does not support array input (yet)

askiiart commented 1 year ago

@Platane Nope, still not working. Here's the repo.

image

Platane commented 1 year ago

Well that's not really a valid workflow file

take a look at this one -> https://github.com/Platane/Platane/blob/master/.github/workflows/main.yml

askiiart commented 1 year ago

Well that's not really a valid workflow file

take a look at this one -> https://github.com/Platane/Platane/blob/master/.github/workflows/main.yml

Oh, thank you! I'm very new to GitHub actions, sorry.