github workflow added to update portal entity (#15) #1
This file contains hidden or 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
name: Update Portal Entity | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- master | |
jobs: | |
update-portal: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
name : checkout-repo | |
id: checkout-repo | |
- name: Zip spec files | |
run: zip -qq -r spec.zip ./spec/. | |
- name: inplace-import | |
run: curl -X PUT --url 'https://api.apimatic.io/api-entities/${{ secrets.API_ENTITY_ID }}' -H 'content-type:multipart/form-data' -H 'Authorization:X-Auth-Key ${{ secrets.API_KEY }}' -F 'file=@spec.zip' |