-
Notifications
You must be signed in to change notification settings - Fork 6
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
Add script to automatically remove accepted ontologies #23
base: master
Are you sure you want to change the base?
Conversation
|
||
# Remove folders corresponding to active ontologies | ||
for directory in DASHBOARD_DIRECTORY.iterdir(): | ||
if directory.is_dir() and directory.name in prefixes: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is already an action that deals with cleaning the directory. Only the yaml file needs to be edited! The rest happens automatically!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome, thank you!
The dir deletion is unnecessary (dealt with by https://github.com/OBOFoundry/obo-nor.github.io/blob/master/.github/workflows/dashboard.yml) and we should always make PRs, instead of committing to master. This way, when the change is merged, the dashboard is automatically rebuild as well!
git config --local user.name "GitHub Action" | ||
git add --all | ||
git commit -m "Automatically remove accepted ontologies" -a | ||
- name: Push changes |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please pull request instead - I prefer not to commit to master..
https://github.com/OBOFoundry/obo-nor.github.io/blob/master/.github/workflows/dashboard.yml#L31
Closes #22
This PR does the following:
tox
file with appropriate configuration to run this script reproduciblyAfter accepting this and running the script via GitHub Actions, the T4FS ontology should get removed.
This took about 15 minutes to write ;)