From a2485422ab885f53adb68ba44c7448e8957c6152 Mon Sep 17 00:00:00 2001 From: Manuel Rafeli Date: Thu, 6 Jun 2024 14:11:13 +0200 Subject: [PATCH] ops: GitHub Action to detect breaking changes on Swagger (#311) --- .github/workflows/release_open_api.yml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release_open_api.yml b/.github/workflows/release_open_api.yml index 4c97c46f..f97b2b88 100644 --- a/.github/workflows/release_open_api.yml +++ b/.github/workflows/release_open_api.yml @@ -1,8 +1,6 @@ -name: Swagger Detect Conflict and Update +name: Swagger Detect Rules and Conflict on: pull_request: - branches: - - main types: [ opened, synchronize, reopened ] permissions: @@ -12,10 +10,10 @@ jobs: swagger_conflict_update: runs-on: ubuntu-20.04 permissions: write-all - name: Swagger Detect Conflict and Update + name: Swagger Detect Rules and Conflict steps: - - id: swagger-conflict-update + - id: swagger-detect uses: pagopa/selfcare-commons/github-actions-template/swagger-detect-conflict-spring@main with: path_openapi_docs: app/src/main/resources/swagger/api-docs.json - branch_ref: main \ No newline at end of file + github_token: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file