push pydantic anatomical_structure to bkbit #16
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
name: push pydantic anatomical_structure to bkbit | |
on: | |
push: | |
paths: 'models_py-autogen/anatomical_structure.py' | |
workflow_run: | |
workflows: [generating other formats] | |
types: | |
- completed | |
jobs: | |
update_anatomical_structure: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout this repository | |
uses: actions/checkout@v3 | |
- name: Pushes to another repository | |
uses: dmnemec/copy_file_to_another_repo_action@main | |
env: | |
API_TOKEN_GITHUB: ${{ secrets.API_TOKEN_GITHUB }} | |
with: | |
source_file: 'models_py-autogen/anatomical_structure.py' | |
destination_repo: 'brain-bican/bkbit' | |
destination_folder: 'bkbit/models/' | |
user_email: '[email protected]' # the GitHub user email associated with the API token secret. | |
user_name: 'puja-trivedi' # the GitHub username associated with the API token secret. | |
commit_message: "pydantic version of anatomical_structure model (anatomical_structure.py) was updated. Pushed from brain-bican/model repository" |