Skip to content
This repository has been archived by the owner on Jan 5, 2025. It is now read-only.

Commit

Permalink
Lock swagger install to a specific version (#70)
Browse files Browse the repository at this point in the history
  • Loading branch information
johncollinson2001 authored May 22, 2024
1 parent 91afc58 commit 5d8c86f
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci-pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v4.1.5

- name: Build and Publish Swagger Docs
run: mkdir -p ${{ github.workspace }}/swagger-artifacts && bash ${{ github.workspace }}/.pipelines/scripts/generate-swagger.sh ${{ github.workspace }}/swagger-artifacts
run: mkdir -p ${{ github.workspace }}/swagger-artifacts && bash ${{ github.workspace }}/scripts/generate-swagger.sh ${{ github.workspace }}/swagger-artifacts
env:
ASPNETCORE_ENVIRONMENT: 'Local'

Expand Down
2 changes: 1 addition & 1 deletion .pipelines/ci-pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ stages:
inputs:
targetType: 'inline'
script: |
bash $(Build.SourcesDirectory)/.pipelines/scripts/generate-swagger.sh $(Build.ArtifactStagingDirectory)
bash $(Build.SourcesDirectory)/scripts/generate-swagger.sh $(Build.ArtifactStagingDirectory)
displayName: 'Build and Publish Swagger Docs'
env:
ASPNETCORE_ENVIRONMENT: 'Local'
Expand Down
2 changes: 1 addition & 1 deletion Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<PackageVersion Include="Carter" Version="8.0.0" />
<PackageVersion Include="Hl7.Fhir.R4" Version="5.4.0" />
<PackageVersion Include="Microsoft.AspNetCore.OpenApi" Version="8.0.1" />
<PackageVersion Include="Swashbuckle.AspNetCore" Version="6.6.1" />
<PackageVersion Include="Swashbuckle.AspNetCore" Version="6.6.2" />
<PackageVersion Include="Quartz" Version="3.8.0" />
<PackageVersion Include="Quartz.Extensions.Hosting" Version="3.8.0" />
</ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion docs/developer/swagger-file.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ The file is then used by the CD pipeline and terraform to create the API in the
In order to generate the swagger file for local testing, you can run the following script:

```bash
bash ./.pipelines/scripts/generate-swagger.sh infrastructure/services/api_management
bash ./scripts/generate-swagger.sh infrastructure/services/api_management
```

This script will generate the swagger file and store it in the `infrastructure/services/api_management` folder. The file can then be used to create the API in the API Management via terraform.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Get the artifact path parameter
artifact_path=$1

dotnet tool install -g Swashbuckle.AspNetCore.Cli
dotnet tool install -g Swashbuckle.AspNetCore.Cli --version 6.6.2
dotnet build HealthcareDataExchange.sln -c Release
cp -r src/Api/bin/Release/net8.0/* $artifact_path
cd $artifact_path
Expand Down

0 comments on commit 5d8c86f

Please sign in to comment.