File tree Expand file tree Collapse file tree 1 file changed +15
-1
lines changed
Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change 3939 name : openapi-foas-${{ inputs.env }}
4040 github-token : ${{ secrets.api_bot_pat }}
4141 run-id : ${{ github.run_id }}
42+ - name : Run IPA validation
43+ id : ipa-spectral-validation
44+ run : |
45+ spectral lint openapi-foas.json --ruleset=./tools/spectral/ipa/ipa-spectral.yaml
4246 - name : Validate the FOAS can be used to generate Postman collection
4347 id : spectral-validation
4448 env :
4953 make convert_to_collection
5054 npx -- @stoplight/spectral-cli@"${SPECTRAL_VERSION}" lint ./tmp/collection.json --ruleset=./validation/spectral.yaml
5155 popd
52- - name : Create Issue
56+ - name : Create Issue - Postman validation Failed
5357 if : ${{ failure() && steps.spectral-validation.outcome == 'failure' }}
5458 uses : imjohnbo/issue-bot@572eed14422c4d6ca37e870f97e7da209422f5bd
5559 env :
5963 title : " (${{env.target_env}}) Optional Postman validation failed :scream_cat:"
6064 body : See https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}
6165 token : ${{ secrets.GITHUB_TOKEN }}
66+ - name : Create Issue - IPA validation Failed
67+ if : ${{ failure() && steps.ipa-spectral-validation.outcome == 'failure' }}
68+ uses : imjohnbo/issue-bot@572eed14422c4d6ca37e870f97e7da209422f5bd
69+ env :
70+ target_env : ${{ inputs.env }}
71+ with :
72+ labels : failed-release
73+ title : " (${{env.target_env}}) Optional IPA validation failed :scream_cat:"
74+ body : See https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}
75+ token : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments