github-activity-readme
github-activity-readme copied to clipboard
<!--START_SECTION:activity--> not found even if it is there
https://github.com/Nigelrex/Nigelrex/edit/main/README.md
https://github.com/Nigelrex/Nigelrex/blob/main/.github/workflows/update-readme.yml
everything is set as said, not sure why this happens
Is this issue for new users only or existing users too? I tried implementing this for the first time today, and facing same issue.
I've had the same issue. I'll be sure to update this thread if I find a solution.
@Nigelrex and @CriticalHunter All you need to do to resolve this is add in the following tags in your README.md file.
<!-- the first part of your README.md goes here! -->
<!--START_SECTION:activity-->
<!-- the last part/remainder of your README.md goes here -->
It seems like it uses these tags as "guard rails" so it doesn't accidentally overwrite the rest of your README.md (makes sense!) Once I added those in I could get things working as expected 🥳
It's actually mentioned in the main README.md as well! we all must have just missed it.
nice 👍🏽 btw I am changing my username so the ping might be gone
I just tried to add this into my readme.md, I made sure to have the within my readme.md and it is still giving me the "Couldn't find the comment"
@Gachuka my readme started working normally a after going through some things you can check my profile repo for reference 😉👍🏽
@R-Rajaneesh If I am reading correctly from your repo, you are not using the one made by James George
You have another one that is setup in your workflow
uses: Readme-Workflows/[email protected]
I did some Googling and I am seeing that James Georges repo is not maintained any more and Recent Activity Action is basically the updated one and should be the one to use.
Or I missing something here?
oops ig then I should have changed my readme workflow. sorry for providing a wrong info
I even tried the new one and I am still getting this error. Any idea how to navigate this problem?
✖ fatal Error: Invalid status code: 128
@Gachuka invalid status code mean that the git commit was not possible because of invalid credentials. Please try the following:
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.
@R-Rajaneesh is your issue resolved?
yes
On Wed, 31 May, 2023, 3:20 am Jan Larwig, @.***> wrote:
@R-Rajaneesh https://github.com/R-Rajaneesh is your issue resolved?
— Reply to this email directly, view it on GitHub https://github.com/jamesgeorge007/github-activity-readme/issues/67#issuecomment-1569153518, or unsubscribe https://github.com/notifications/unsubscribe-auth/AR42GCL3ZPSFGZFFC3TT3K3XIZTRXANCNFSM5E5QGEDQ . You are receiving this because you were mentioned.Message ID: @.***>