diff --git a/.github/workflows/update-swagger.yml b/.github/workflows/update-swagger.yml index 601a0b0..e4a09d4 100644 --- a/.github/workflows/update-swagger.yml +++ b/.github/workflows/update-swagger.yml @@ -8,7 +8,7 @@ jobs: updateSwagger: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Get Latest Swagger UI Release id: swagger-ui run: | @@ -36,10 +36,12 @@ jobs: sed -i "s|href=\"./|href=\"dist/|g" index.html sed -i "s|src=\"./|src=\"dist/|g" index.html sed -i "s|href=\"index|href=\"dist/index|g" index.html + # Add configurations + sed -i "s|deepLinking: true,|deepLinking: true,\r\n supportedSubmitMethods: [],|g" dist/swagger-initializer.js # Update current release echo ${{ steps.swagger-ui.outputs.release_tag }} > swagger-ui.version - name: Create Pull Request - uses: peter-evans/create-pull-request@v4 + uses: peter-evans/create-pull-request@v6 with: commit-message: Update swagger-ui to ${{ steps.swagger-ui.outputs.release_tag }} title: Update SwaggerUI to ${{ steps.swagger-ui.outputs.release_tag }}