You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Awesome Workflow makes changes to format files or to change the DIRECTORY.md, and then pushes the changes to the master branch.
However, that branch is a protected branch, which means only administrators or certain permitted users can make changes without creating a PR. AFAIK, GitHub Actions cannot be given permissions.
The CI cannot push any changes to the master branch.
Steps to reproduce
No response
Context
This is very important when updating the DIRECTORY.md file, when formatting files, etc.. Without these, the files may be unformatted or have filenames that do not follow our guidelines and other stuff that the CI takes care of.
Additional information
No response
The text was updated successfully, but these errors were encountered:
Panquesito7
added
dont-close
This issue/pull request shouldn't be closed
and removed
stale
Author has not responded to the comments for over 2 weeks
labels
Jan 24, 2023
I'm not quite knowledgeable in CI but I've seen the algorithms/python update their DIRECTORY.md file using a CI.
I think they are using a GitHub secret token to push things to the directory file i am not sure.
I have also seen pre-commit also manage to push changes into the current pull request. I'll do some more researching and I'll let you know how it goes. Hope this helps 🙂
Maybe something like this might just work:
Description
The Awesome Workflow makes changes to format files or to change the
DIRECTORY.md
, and then pushes the changes to themaster
branch.However, that branch is a protected branch, which means only administrators or certain permitted users can make changes without creating a PR. AFAIK, GitHub Actions cannot be given permissions.
https://github.com/TheAlgorithms/C/actions/runs/3728181169/jobs/6322964878#step:11:19
https://github.com/orgs/community/discussions/25305
Expected behavior
The CI should normally push the changes.
Actual behavior
The CI cannot push any changes to the
master
branch.Steps to reproduce
No response
Context
This is very important when updating the
DIRECTORY.md
file, when formatting files, etc.. Without these, the files may be unformatted or have filenames that do not follow our guidelines and other stuff that the CI takes care of.Additional information
No response
The text was updated successfully, but these errors were encountered: