From 080487d758ccc0063e802d8d0c058091244e4420 Mon Sep 17 00:00:00 2001 From: Takuya Iwatsuka Date: Wed, 15 Nov 2023 22:56:36 +0900 Subject: [PATCH] fix workflow jobs Signed-off-by: Takuya Iwatsuka --- .github/workflows/1-pr.yaml | 6 +++++- samples/azure/azure-function/function.csproj | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/1-pr.yaml b/.github/workflows/1-pr.yaml index 21af16c7c..b38b914d0 100644 --- a/.github/workflows/1-pr.yaml +++ b/.github/workflows/1-pr.yaml @@ -123,6 +123,8 @@ jobs: - name: Generate Open API run: dotnet tool run swagger tofile --output ./wwwroot/api/v1/swagger.yaml --yaml ${{ env.DLL_FILE_PATH }} v1 + env: + DOTNET_ROLL_FORWARD: LatestMajor working-directory: ./src/CarbonAware.WebApi/src - name: Upload swagger artifact @@ -144,7 +146,7 @@ jobs: - name: Docker Run Container run: | - docker run -d --name runnable-container -p 8080:80 ca-api + docker run -d --name runnable-container -p 8080:8080 ca-api docker container ls - name: Docker WGET Health Endpoint @@ -179,6 +181,8 @@ jobs: working-directory: ${{ env.DOTNET_SRC_DIR }} - name: Generate Open API run: dotnet tool run swagger tofile --output ./wwwroot/api/v1/swagger.yaml --yaml ${{ env.DLL_FILE_PATH }} v1 + env: + DOTNET_ROLL_FORWARD: LatestMajor - name: Upload dev artifact uses: actions/upload-artifact@v1 with: diff --git a/samples/azure/azure-function/function.csproj b/samples/azure/azure-function/function.csproj index 7707fc0b2..f259625ee 100644 --- a/samples/azure/azure-function/function.csproj +++ b/samples/azure/azure-function/function.csproj @@ -12,7 +12,7 @@ - +