Closed aledeg closed 2 years ago
I somehow did not see this PR until now, sorry! Could you resolve the conflicts?
I will as soon as I resume my work on that. I'll keep you posted!
It would be nice to keep downloaded repositories in a cache to avoid too much resource consumption. And if the cache already exists, then use a a git fetch and git reset instead of git clone.
It would be nice to keep downloaded repositories in a cache to avoid too much resource consumption. And if the cache already exists, then use a a git fetch and git reset instead of git clone.
I think it would be really hard for no real gain. My goal is to trigger the generation tool once a day automatically with github actions. I am pretty sure I cannot keep cache between executions. The idea is to have the file always up-to-date with a delay of 24 hours maximum and to avoid manual work.
With the exception of the two framagit repos, by being on GitHub they're already in cache for all intents and purposes.
@aledeg Is this focus on master and --no-tags correct for all of the extensions? One may well update the json long before tagging a release.
@Frenzie You're right. Do you have any suggestion on how I could address that? Do we keep a policy in the file description? Do we use a single rule for all repositories?
A single rule of tags if there are any, otherwise json might do the trick. But indeed, manual policy is probably better/safer. Not quite sure.
I'll look into that!
A little conflict :-)
I've solved the conflict. I'll try to find a way to address @Frenzie 's concern about the tagging issue. I have some ideas but I have to dig a little bit.
I need also to dig into github actions to see how I can build the list automatically. That will be fun, I am looking forward to it.
Oh! shoot. I was not ready :/ I'll make another branch.
Ah, I thought you wanted the CI in another PR :-)
Don't worry. I'll make the changes in another PR :)
Instead of manually maintaining the file, there is now a tool that grab all repositories defined in the repositories.json file and browse through all repositories to find extensions. To do that, I've added a container that runs only php-cli to trigger said tool.
The next step will be to trigger that tool automatically on a regular basis and to update the current repository when there are changes.