-
Notifications
You must be signed in to change notification settings - Fork 229
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
my workflow for recent activity is not working. #80
Comments
also having this error |
got this error this morning |
Same Here |
Any update on this? |
I had faced the same problem. But I solved the problem eventually. Here are my codes. YML filename: Update README
on:
schedule:
- cron: '*/30 * * * *'
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
name: Update this repo's README with recent activity
steps:
- uses: actions/checkout@v2
- uses: jamesgeorge007/github-activity-readme@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} README.mdCopy all the codes. If you only copy and paste the # :zap: Recent Activity
<!--START_SECTION:activity-->
1. 🎉 Merged PR [#90](https://github.com/CartimDraluc/Cartimpedia/pull/90) in [CartimDraluc/Cartimpedia](https://github.com/CartimDraluc/Cartimpedia)
2. 💪 Opened PR [#90](https://github.com/CartimDraluc/Cartimpedia/pull/90) in [CartimDraluc/Cartimpedia](https://github.com/CartimDraluc/Cartimpedia)
3. 🗣 Commented on [#89](https://github.com/CartimDraluc/Cartimpedia/issues/89) in [CartimDraluc/Cartimpedia](https://github.com/CartimDraluc/Cartimpedia)
4. ❗️ Closed issue [#89](https://github.com/CartimDraluc/Cartimpedia/issues/89) in [CartimDraluc/Cartimpedia](https://github.com/CartimDraluc/Cartimpedia)
5. ❗️ Opened issue [#89](https://github.com/CartimDraluc/Cartimpedia/issues/89) in [CartimDraluc/Cartimpedia](https://github.com/CartimDraluc/Cartimpedia)
<!--END_SECTION:activity--> Here is my repo : https://github.com/NyanKaungSet/Github-Workflow/blob/master/README.md#Recent_Actvity If the workflow failed, make sure you created
I hoped this may be helpful. |
I can confirm that it is still not working. Here is the last output using the same configuration you mentioned:
My Moreover, my
|
As I mentioned above, Your README file only have these lines.
Delete those 2 lines and add the following codes. Save it and run the workflow. If this still doesn’t work, I will fork your repo and try from my side.
|
Sorry, but it doesn't make sense at all what you are suggesting. Everything wrapped by I've also tried just to be sure, and it doesn't work, indeed. I have my own version of the action (see #79) where we add a |
For those who are facing this issue:
After a long debugging, it seems that the issue is related to the permissions or security of the repo/branch. The CI GitHub action works as intended (see Make sure that you are not locking or protecting the After I removed the protections, the action worked as intended. |
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. |
The text was updated successfully, but these errors were encountered: