Merge pull request #67 from eliteportal/LLFS-rnaseq-updates #20
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Workflow that updates the metadata dictionary materials in docs/ and _data/ after changes to the data model | |
# This action should automatically run after: a PR with changes to the data model is merged into main (update_data_model.yml) | |
# This action should run before: the Github Pages deployment workflow is run to publish changes to the dictionary site (pages.yml) | |
name: Update Metadata Dictionary | |
on: | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
jobs: | |
dictionary: | |
runs-on: ubuntu-latest | |
name: update term files and pages | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.10' | |
cache: 'pip' | |
- name: Install Poetry | |
uses: snok/install-poetry@v1 | |
- name: Install dependencies | |
run: | | |
poetry install | |
- name: update _data csv term files | |
run: | | |
poetry run python processes/data_manager.py | |
- name: update term pages | |
run: | | |
poetry run python processes/page_manager.py | |
- name: Commit changes | |
uses: EndBug/add-and-commit@v9 | |
with: | |
message: 'Github Action: Updated dictionary term files and term pages' | |
default_author: github_actions |