github-activity-readme
github-activity-readme copied to clipboard
Job fails without error message
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)
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))
See https://github.com/jamesgeorge007/github-activity-readme/issues/80#issuecomment-1217821092
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.