![]() ![]() I can see lots of example actions that run files but I can not see any that actually directly interact with the existing repository files, is it possible? I have seen some talking about automating push processes but I could not see how it could include the files created by the php file that is run within the action. What I was wondering is, can this process simply be run as an “action” within GitHub? Basically the plan would be if one of three named json files are updated, the action could run and automatically rebuild the html files. ![]() The local copy of the repository can then be pushed back to GitHub and the GitHub pages for the project are updated. I have been running the PHP file on a local machine in a cloned copy of the repository: it removes the old html files in the docs folder, reads in the json files and then creates a new set of html pages into the local docs folder, based on the content of the json files. The idea is to simplify the process of making a set of consistent GitHub web-pages for a given repository. The build process is carried out by a PHP file. I have a simple repository that builds a series of html pages, based on a few json files. “Can GitHub Actions run a PHP file that can read, delete and create files directly within a repository?”
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |