diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml deleted file mode 100644 index 3cf28f2..0000000 --- a/.github/workflows/main.yml +++ /dev/null @@ -1,13 +0,0 @@ -on: [push] - -jobs: - test_swagger_editor_validator_remote: - runs-on: ubuntu-latest - name: Swagger Editor Validator Remote - - steps: - - uses: actions/checkout@v2 - - name: Validate OpenAPI definition - uses: char0n/swagger-editor-validate@v1 - with: - definition-file: docs/openapi.json diff --git a/.github/workflows/openapi-validation.yml b/.github/workflows/openapi-validation.yml new file mode 100644 index 0000000..691b6f7 --- /dev/null +++ b/.github/workflows/openapi-validation.yml @@ -0,0 +1,16 @@ +--- +name: openapi-validate +on: [push] +jobs: + check-openapi-definition: + runs-on: ubuntu-latest + name: Swagger Editor Validator Remote + steps: + - name: ๐Ÿ“„ Checkout the repository + uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4 + with: + fetch-depth: 0 + - name: ๐Ÿงช Validate OpenAPI definition + uses: char0n/swagger-editor-validate@v1 + with: + definition-file: docs/openapi.json