Skip to content
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

Set up CI to update the model indices #54

Open
javagl opened this issue Nov 20, 2023 · 0 comments
Open

Set up CI to update the model indices #54

javagl opened this issue Nov 20, 2023 · 0 comments

Comments

@javagl
Copy link
Contributor

javagl commented Nov 20, 2023

The initial approach for CI in this repository contained a step that was supposed to update the markdown "index" files automatically when a new model is added. When there was a PR, then this CI step tried to update this PR with an update of the index files. Unfortunately, due to some sudden, unannounced, and apparently undocumented change in GitHub actions, this is no longer possible, and it led do #27.

Therefore, the CI currently therefore only checks the validity of the models and folder structure (but does not do any modifications on its own).

It should, however, be possible (and relatively simple) to create a CI step that is triggered when a pull request is merged, and updates the index files. It would need to

  • Check out the repository
  • Set up PHP
  • Run php util/model.php --no-warn --check --update --process-repo --verbose
  • Commit the modifications
  • Push

Considering that this will only run within this repository, by the GitHub bot that belongs to this repository, there should not be any authorization issues with that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant