Skip to content

Commit

Permalink
Merge pull request #43 from puja-trivedi/workflow_modifications_ansrs…
Browse files Browse the repository at this point in the history
…_20240523

added workflow to push ansrs model to bkbit repo
  • Loading branch information
puja-trivedi authored May 23, 2024
2 parents 0633b96 + 6404fda commit 93b6884
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/push_ansrs_to_bkbit.yaml
Original file line number Diff line number Diff line change
@@ -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: '[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 ansrs model (ansrs.py) was updated. Pushed from brain-bican/model repository"

0 comments on commit 93b6884

Please sign in to comment.