From a66f665efac71d5bda20164d69f9339b1f4eae27 Mon Sep 17 00:00:00 2001 From: Philipp Winter Date: Wed, 22 May 2024 15:53:42 -0500 Subject: [PATCH] Set swagger's version as environment variable. ...for consistency. --- .github/workflows/cloud-api-spec.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/cloud-api-spec.yaml b/.github/workflows/cloud-api-spec.yaml index 84bb85a..330f754 100644 --- a/.github/workflows/cloud-api-spec.yaml +++ b/.github/workflows/cloud-api-spec.yaml @@ -9,6 +9,7 @@ on: env: GO_VERSION: 1.22 + SWAGGER_VERSION: v0.31.0 jobs: Validate: @@ -22,7 +23,7 @@ jobs: go-version: ${{ env.GO_VERSION }} - name: Install go-swagger - run: go install github.com/go-swagger/go-swagger/cmd/swagger@v0.31.0 + run: go install github.com/go-swagger/go-swagger/cmd/swagger@${{ env.SWAGGER_VERSION }} - name: Validate specs run: |