mirror of https://github.com/nocodb/nocodb
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
42 lines
1.3 KiB
42 lines
1.3 KiB
name: "Publish : Api Docs" |
|
|
|
on: |
|
push: |
|
branches: [ master ] |
|
paths: |
|
- "scripts/sdk/swagger.json" |
|
release: |
|
types: [ published ] |
|
|
|
jobs: |
|
copy-file: |
|
runs-on: ubuntu-latest |
|
steps: |
|
- name: Checkout |
|
uses: actions/checkout@v2 |
|
with: |
|
fetch-depth: 0 |
|
|
|
- name: Pushes swagger file to 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: 'src' |
|
user_email: 'oof1lab@gmail.com' |
|
user_name: 'o1lab' |
|
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'
|
|
|