githubgithub-actionsorganization

GitHub organization Action failed


Can you help to solve this error.

Run Platane/snk/svg-only@v3
  with:
    github_user_name: sankacrew
    outputs: dist/snake.svg?palette=github-dark
    github_token: ***
šŸŽ£ fetching github user contribution
Error: Action failed with "Could not resolve to a User with the login of 'sankacrew'."

enter image description here

Error: Action failed with "Could not resolve to a User with the login of 'sankacrew'."


Solution

  • Alternatively you can pass to action variable github_user_name the repository owner if you are targeting to generate snake for current user. Like this:

    - name: generate github-contribution-grid-snake.svg
      uses: Platane/snk/svg-only@v3
      with:
        github_user_name: ${{ github.repository_owner }}
        outputs: |
          dist/github-contribution-grid-snake.svg?color_snake=orange
          dist/github-contribution-grid-snake-dark.svg?palette=github-dark&color_snake=orange