-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #43 from puja-trivedi/workflow_modifications_ansrs…
…_20240523 added workflow to push ansrs model to bkbit repo
- Loading branch information
Showing
1 changed file
with
29 additions
and
0 deletions.
There are no files selected for viewing
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
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" |