Skip to content

Commit

Permalink
Set swagger's version as environment variable.
Browse files Browse the repository at this point in the history
...for consistency.
  • Loading branch information
NullHypothesis committed May 22, 2024
1 parent fa19c9e commit a66f665
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/cloud-api-spec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ on:

env:
GO_VERSION: 1.22
SWAGGER_VERSION: v0.31.0

jobs:
Validate:
Expand All @@ -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: |
Expand Down

0 comments on commit a66f665

Please sign in to comment.