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

Job fails without error message #76

Closed
netcodedev opened this issue Mar 11, 2022 · 3 comments
Closed

Job fails without error message #76

netcodedev opened this issue Mar 11, 2022 · 3 comments

Comments

@netcodedev
Copy link

Run jamesgeorge007/github-activity-readme@master 

⬤ debug Getting activity for N3TC0D3 

⬤ debug Activity for N3TC0D3, 100 events found. 

✔ success Updated README with the recent activity 

⬤ debug Something went wrong 

✖ fatal Error: Invalid status code: 1 

 at ChildProcess.<anonymous> (/home/runner/work/_actions/jamesgeorge007/github-activity-readme/master/dist/index.js:1530:15) 

 at ChildProcess.emit (events.js:314:20) 

 at maybeClose (internal/child_process.js:1022:16) 

 at Socket.<anonymous> (internal/child_process.js:444:11) 

 at Socket.emit (events.js:314:20) 

 at Pipe.<anonymous> (net.js:675:12)


@sidmohanty11
Copy link

same here,

⬤  debug     Getting activity for sidmohanty11
⬤  debug     Activity for sidmohanty11, [10](https://github.com/sidmohanty11/sidmohanty11/runs/6434042076?check_suite_focus=true#step:3:10)0 events found.
⬤  debug     Something went wrong
✖  fatal     Error: Invalid status code: 128 
    at ChildProcess.<anonymous> (/home/runner/work/_actions/jamesgeorge007/github-activity-readme/master/dist/index.js:1530:15)
    at ChildProcess.emit (events.js:314:20)
    at maybeClose (internal/child_process.js:1022:16)
    at Socket.<anonymous> (internal/child_process.js:444:[11](https://github.com/sidmohanty11/sidmohanty11/runs/6434042076?check_suite_focus=true#step:3:11))
    at Socket.emit (events.js:314:20)
    at Pipe.<anonymous> (net.js:675:[12](https://github.com/sidmohanty11/sidmohanty11/runs/6434042076?check_suite_focus=true#step:3:12))

@fbuireu
Copy link

fbuireu commented Aug 17, 2022

See #80 (comment)

@tuunit
Copy link
Collaborator

tuunit commented May 30, 2023

Just add the following permission flag to allow github actions to update the contents of your repository:

name: GitHub Activity

on:
  workflow_dispatch:
  schedule:
    - cron: "0 0 * * *"

jobs:
  build:
    runs-on: ubuntu-latest
    permissions:
      contents: write
    steps:
      - uses: actions/checkout@v3
      - uses: jamesgeorge007/github-activity-readme@master
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

This way a token with write/commit privileges will be created. I have changed the README.md to reflect this necessary change.

@tuunit tuunit closed this as completed May 30, 2023
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

4 participants