add description about alone metrics and replaced old photo #113
This file contains 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: Delete spec version from SwaggerHub | |
defaults: | |
run: | |
working-directory: openapi | |
on: | |
pull_request: | |
types: [closed] | |
branches: | |
- master | |
push: | |
branches: | |
- feature/* | |
- release/[0-9]+.[0-9]+.[0-9]+ | |
- master | |
jobs: | |
removespec: | |
name: Delete api from SwaggerHub | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: '16.16.0' | |
- run: npm i --location=global swaggerhub-cli | |
- run: | | |
VERSION=`echo ${GITHUB_REF_NAME} | sed 's#[^a-zA-Z0-9_\.\-]#_#g'` | |
SWAGGERHUB_API_KEY=${{secrets.SWAGGERHUB_TOKEN}} swaggerhub api:unpublish "Moira/moira-alert/${VERSION}" | |
SWAGGERHUB_API_KEY=${{secrets.SWAGGERHUB_TOKEN}} swaggerhub api:delete "Moira/moira-alert/${VERSION}" |