diff --git a/.github/workflows/push_ansrs_to_bkbit.yaml b/.github/workflows/push_ansrs_to_bkbit.yaml new file mode 100644 index 000000000..4acf80652 --- /dev/null +++ b/.github/workflows/push_ansrs_to_bkbit.yaml @@ -0,0 +1,29 @@ +name: push pydantic ansrs to bkbit + +on: + push: + paths: 'models_py-autogen/ansrs.py' + workflow_run: + workflows: [generating other formats] + types: + - completed + +jobs: + update_ansrs: + 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/ansrs.py' + destination_repo: 'brain-bican/bkbit' + destination_folder: 'bkbit/models/' + user_email: 'xspuja@gmail.com' # 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 ansrs model (ansrs.py) was updated. Pushed from brain-bican/model repository" \ No newline at end of file