|
|
@ -5,6 +5,8 @@ on: |
|
|
|
branches: [ master ] |
|
|
|
branches: [ master ] |
|
|
|
paths: |
|
|
|
paths: |
|
|
|
- "scripts/sdk/swagger.json" |
|
|
|
- "scripts/sdk/swagger.json" |
|
|
|
|
|
|
|
release: |
|
|
|
|
|
|
|
types: [ published ] |
|
|
|
|
|
|
|
|
|
|
|
jobs: |
|
|
|
jobs: |
|
|
|
copy-file: |
|
|
|
copy-file: |
|
|
@ -13,7 +15,7 @@ jobs: |
|
|
|
- name: Checkout |
|
|
|
- name: Checkout |
|
|
|
uses: actions/checkout@v2 |
|
|
|
uses: actions/checkout@v2 |
|
|
|
|
|
|
|
|
|
|
|
- name: Pushes generated output |
|
|
|
- name: Pushes swagger file to src |
|
|
|
uses: dmnemec/copy_file_to_another_repo_action@1b29cbd9a323185f20b175dc6d5f8f31be5c0658 |
|
|
|
uses: dmnemec/copy_file_to_another_repo_action@1b29cbd9a323185f20b175dc6d5f8f31be5c0658 |
|
|
|
env: |
|
|
|
env: |
|
|
|
API_TOKEN_GITHUB: ${{ secrets.GH_TOKEN }} |
|
|
|
API_TOKEN_GITHUB: ${{ secrets.GH_TOKEN }} |
|
|
@ -23,4 +25,16 @@ jobs: |
|
|
|
destination_folder: 'src' |
|
|
|
destination_folder: 'src' |
|
|
|
user_email: 'oof1lab@gmail.com' |
|
|
|
user_email: 'oof1lab@gmail.com' |
|
|
|
user_name: 'o1lab' |
|
|
|
user_name: 'o1lab' |
|
|
|
commit_message: 'Autorelease from github.com/nocodb/nc' |
|
|
|
commit_message: 'Autorelease from github.com/nocodb/nocodb' |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: Pushes swagger file to meta-src |
|
|
|
|
|
|
|
uses: dmnemec/copy_file_to_another_repo_action@1b29cbd9a323185f20b175dc6d5f8f31be5c0658 |
|
|
|
|
|
|
|
env: |
|
|
|
|
|
|
|
API_TOKEN_GITHUB: ${{ secrets.GH_TOKEN }} |
|
|
|
|
|
|
|
with: |
|
|
|
|
|
|
|
source_file: 'scripts/sdk/swagger.json' |
|
|
|
|
|
|
|
destination_repo: 'nocodb/noco-apis-doc' |
|
|
|
|
|
|
|
destination_folder: 'meta-src' |
|
|
|
|
|
|
|
user_email: 'oof1lab@gmail.com' |
|
|
|
|
|
|
|
user_name: 'o1lab' |
|
|
|
|
|
|
|
commit_message: 'Autorelease from github.com/nocodb/nocodb' |
|
|
|