Skip to content

Commit

Permalink
[MCIL-126] add step to update openapi
Browse files Browse the repository at this point in the history
  • Loading branch information
lucaconsalvi committed Apr 23, 2024
1 parent aaf862e commit 036c8db
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/post-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -276,3 +276,19 @@ jobs:
echo "Move $key to DONE."
curl -u ${{ secrets.JIRA_USER_EMAIL }}:${{ secrets.JIRA_API_TOKEN }} -X POST --data '{"transition":{"id":"31"}}' -H "Content-Type: application/json" ${{ secrets.JIRA_BASE_URL }}/rest/api/3/issue/$key/transitions
done
- name: Update OpenAPI
if: steps.semantic.outputs.new_release_published == 'true'
run: |
API_DATA=$(az apim api show --resource-group mil-d-integration-rg --service-name mil-d-apim --api-id mil-d-idpay --query "{path:path, serviceUrl:serviceUrl}")
API_PATH=$(echo $API_DATA | jq -r '.path')
API_SERVICE_URL=$(echo $API_DATA | jq -r '.serviceUrl')
az apim api import \
--resource-group mil-d-integration-rg \
--service-name mil-d-apim \
--api-id mil-d-idpay \
--specification-format OpenApi \
--specification-url https://raw.githubusercontent.com/pagopa/mil-idpay/main/src/main/resources/META-INF/openapi.yaml \
--path $API_PATH \
--service-url $API_SERVICE_URL

0 comments on commit 036c8db

Please sign in to comment.