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

[BUG] #38

Closed
Lucretia opened this issue Mar 26, 2021 · 4 comments
Closed

[BUG] #38

Lucretia opened this issue Mar 26, 2021 · 4 comments

Comments

@Lucretia
Copy link

Lucretia commented Mar 26, 2021

Describe the bug

from anuraghazra/github-readme-stats#270 (comment)

Hi @Lucretia .
I was not sure would @anuraghazra fix this, so I made a repo that provide similar feature after my PR #307 was ignored.
I hope this helps.
https://github.com/vn7n24fzkq/github-profile-summary-cards

I tried to follow your instructions, but they're not correct. I had to add the yml file in the workflows directory myself, your instructions insinuate it would be added automatically. Iit fails on the run action with:

Run vn7n24fzkq/github-profile-summary-cards@release
  with:
    USERNAME: Lucretia
  env:
    GITHUB_TOKEN: 
Start...
Remove old cards...
Creating ProfileDetailsCard...
Error: Error when creating ProfileDetailsCard 
Error: Request failed with status code 401
    at createError (/home/runner/work/_actions/vn7n24fzkq/github-profile-summary-cards/release/dist/index.js:9143:15)
    at settle (/home/runner/work/_actions/vn7n24fzkq/github-profile-summary-cards/release/dist/index.js:9402:12)
    at IncomingMessage.handleStreamEnd (/home/runner/work/_actions/vn7n24fzkq/github-profile-summary-cards/release/dist/index.js:8529:11)
    at IncomingMessage.emit (events.js:215:7)
    at endReadableNT (_stream_readable.js:1184:12)
    at processTicksAndRejections (internal/process/task_queues.js:80:21)
Creating ReposPerLanguageCard...
Error: Error when creating ReposPerLanguageCard 
Error: Request failed with status code 401
    at createError (/home/runner/work/_actions/vn7n24fzkq/github-profile-summary-cards/release/dist/index.js:9143:15)
    at settle (/home/runner/work/_actions/vn7n24fzkq/github-profile-summary-cards/release/dist/index.js:9402:12)
    at IncomingMessage.handleStreamEnd (/home/runner/work/_actions/vn7n24fzkq/github-profile-summary-cards/release/dist/index.js:8529:11)
    at IncomingMessage.emit (events.js:215:7)
    at endReadableNT (_stream_readable.js:1184:12)
    at processTicksAndRejections (internal/process/task_queues.js:80:21)
Creating CommitsPerLanguageCard...
Error: Error when creating CommitsPerLanguageCard 
Error: Request failed with status code 401
    at createError (/home/runner/work/_actions/vn7n24fzkq/github-profile-summary-cards/release/dist/index.js:9143:15)
    at settle (/home/runner/work/_actions/vn7n24fzkq/github-profile-summary-cards/release/dist/index.js:9402:12)
    at IncomingMessage.handleStreamEnd (/home/runner/work/_actions/vn7n24fzkq/github-profile-summary-cards/release/dist/index.js:8529:11)
    at IncomingMessage.emit (events.js:215:7)
    at endReadableNT (_stream_readable.js:1184:12)
    at processTicksAndRejections (internal/process/task_queues.js:80:21)
Creating StatsCard...
Error: Error when creating StatsCard 
Error: Request failed with status code 401
    at createError (/home/runner/work/_actions/vn7n24fzkq/github-profile-summary-cards/release/dist/index.js:9143:15)
    at settle (/home/runner/work/_actions/vn7n24fzkq/github-profile-summary-cards/release/dist/index.js:9402:12)
    at IncomingMessage.handleStreamEnd (/home/runner/work/_actions/vn7n24fzkq/github-profile-summary-cards/release/dist/index.js:8529:11)
    at IncomingMessage.emit (events.js:215:7)
    at endReadableNT (_stream_readable.js:1184:12)
    at processTicksAndRejections (internal/process/task_queues.js:80:21)
Creating ProductiveTimeCard...
Error: Error when creating ProductiveTimeCard 
Error: Request failed with status code 401
    at createError (/home/runner/work/_actions/vn7n24fzkq/github-profile-summary-cards/release/dist/index.js:9143:15)
    at settle (/home/runner/work/_actions/vn7n24fzkq/github-profile-summary-cards/release/dist/index.js:9402:12)
    at IncomingMessage.handleStreamEnd (/home/runner/work/_actions/vn7n24fzkq/github-profile-summary-cards/release/dist/index.js:8529:11)
    at IncomingMessage.emit (events.js:215:7)
    at endReadableNT (_stream_readable.js:1184:12)
    at processTicksAndRejections (internal/process/task_queues.js:80:21)
Creating preview markdown...
Error: Error when creating preview markdown 
Error: ENOENT: no such file or directory, scandir './profile-summary-card-output/default'
    at Object.readdirSync (fs.js:854:3)
    at getAllFileInFolder (/home/runner/work/_actions/vn7n24fzkq/github-profile-summary-cards/release/dist/index.js:195990:6)
    at generateThemePreviewReadme (/home/runner/work/_actions/vn7n24fzkq/github-profile-summary-cards/release/dist/index.js:196044:20)
    at generatePreviewMarkdown (/home/runner/work/_actions/vn7n24fzkq/github-profile-summary-cards/release/dist/index.js:196006:5)
    at main (/home/runner/work/_actions/vn7n24fzkq/github-profile-summary-cards/release/dist/index.js:194588:13)
    at processTicksAndRejections (internal/process/task_queues.js:93:5)
Commit file...
Warning: Commit failed. Retry...
Warning: Commit failed. Retry...
Error: Error: git add,./profile-summary-card-output/ 
  
 Invalid status code: 128
Error: git add,./profile-summary-card-output/ 
  
 Invalid status code: 128

I don't know if GITHUB_TOKEN: should have my token pasted in there or if it's omitted on purpose.

To Reproduce
Steps to reproduce the behavior:

  1. Follow the instructions from https://github.com/vn7n24fzkq/github-profile-summary-cards

Expected behavior
Expect to happen what's in the docs

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • Linux
  • FF
  • 87.0
@vn7n24fzkq
Copy link
Owner

@Lucretia Hi, thanks for your report.
Did you add a Personal Access Token to your repo as a SECRET, and required permissions for token have been enabled.
GITHUB_TOKEN: should be the name of SECRET.

Here is a Tutorial.

And I am planning to make a URL usage(#35) feature in the next week.

@Lucretia
Copy link
Author

Lucretia commented Mar 26, 2021

Yes, I did:

pat
secret
yml

and I know SUMMARY is spelt wrong, only just noticed.

@vn7n24fzkq
Copy link
Owner

vn7n24fzkq commented Mar 26, 2021

The secret use secrets as a prefix.
It will looks like this.
GITHUB_TOKEN: ${{ secrets.README }}

@Lucretia
Copy link
Author

Thanks that worked.

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