Skip to content

Commit 080487d

Browse files
committed
fix workflow jobs
Signed-off-by: Takuya Iwatsuka <[email protected]>
1 parent ac2e017 commit 080487d

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.github/workflows/1-pr.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,8 @@ jobs:
123123

124124
- name: Generate Open API
125125
run: dotnet tool run swagger tofile --output ./wwwroot/api/v1/swagger.yaml --yaml ${{ env.DLL_FILE_PATH }} v1
126+
env:
127+
DOTNET_ROLL_FORWARD: LatestMajor
126128
working-directory: ./src/CarbonAware.WebApi/src
127129

128130
- name: Upload swagger artifact
@@ -144,7 +146,7 @@ jobs:
144146

145147
- name: Docker Run Container
146148
run: |
147-
docker run -d --name runnable-container -p 8080:80 ca-api
149+
docker run -d --name runnable-container -p 8080:8080 ca-api
148150
docker container ls
149151
150152
- name: Docker WGET Health Endpoint
@@ -179,6 +181,8 @@ jobs:
179181
working-directory: ${{ env.DOTNET_SRC_DIR }}
180182
- name: Generate Open API
181183
run: dotnet tool run swagger tofile --output ./wwwroot/api/v1/swagger.yaml --yaml ${{ env.DLL_FILE_PATH }} v1
184+
env:
185+
DOTNET_ROLL_FORWARD: LatestMajor
182186
- name: Upload dev artifact
183187
uses: actions/upload-artifact@v1
184188
with:

samples/azure/azure-function/function.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<PackageReference Include="System.ComponentModel.Composition" Version="6.0.0" />
1313
<PackageReference Include="WireMock.Net" Version="1.5.6" />
1414
<PackageReference Include="Microsoft.Azure.Functions.Extensions" Version="1.1.0" />
15-
<PackageReference Include="Microsoft.NET.Sdk.Functions" Version="4.0.1" />
15+
<PackageReference Include="Microsoft.NET.Sdk.Functions" Version="4.2.0" />
1616
</ItemGroup>
1717
<ItemGroup>
1818
<None Update="host.json">

0 commit comments

Comments
 (0)