Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

output_dir is not created before the generation of the badge #3

Closed
yegor256 opened this issue Mar 5, 2024 · 1 comment
Closed

output_dir is not created before the generation of the badge #3

yegor256 opened this issue Mar 5, 2024 · 1 comment

Comments

@yegor256
Copy link

yegor256 commented Mar 5, 2024

I'm getting this:

Hits of code: 7763
Traceback (most recent call last):
  File "/home/runner/.local/bin/anybadge", line 8, in <module>
    sys.exit(main())
  File "/home/runner/.local/lib/python3.10/site-packages/anybadge/cli.py", line 229, in main
    badge.write_badge(args.file, overwrite=args.overwrite)
  File "/home/runner/.local/lib/python3.10/site-packages/anybadge/badge.py", line 772, in write_badge
    with open(file, mode="w") as file_handle:
FileNotFoundError: [Errno 2] No such file or directory: 'gh-pages/hoc-badge.svg'

My config:

      - uses: MikhailEpatko/hits-of-code-badge@main
        with:
          output_dir: gh-pages
          filename: hoc-badge.svg
MikhailEpatko pushed a commit that referenced this issue Mar 5, 2024
MikhailEpatko added a commit that referenced this issue Mar 5, 2024
MikhailEpatko pushed a commit that referenced this issue Mar 5, 2024
MikhailEpatko pushed a commit that referenced this issue Mar 5, 2024
MikhailEpatko pushed a commit that referenced this issue Mar 5, 2024
MikhailEpatko pushed a commit that referenced this issue Mar 5, 2024
@MikhailEpatko
Copy link
Owner

fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants