From a2992566772adc13d0d117317987f62b971b0959 Mon Sep 17 00:00:00 2001 From: Bill Wagner Date: Sun, 2 Feb 2025 10:17:29 -0500 Subject: [PATCH] Fix the configuration for actions (#471) Because cleanrepo now has a dependency on the docs-tools library, build from the parent folder, and adjust the Dockerfile accordingly. --- cleanrepo/Dockerfile => cleanrepo.Dockerfile | 2 +- cleanrepo/action.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) rename cleanrepo/Dockerfile => cleanrepo.Dockerfile (82%) diff --git a/cleanrepo/Dockerfile b/cleanrepo.Dockerfile similarity index 82% rename from cleanrepo/Dockerfile rename to cleanrepo.Dockerfile index ac9687af..180afbf3 100644 --- a/cleanrepo/Dockerfile +++ b/cleanrepo.Dockerfile @@ -2,7 +2,7 @@ FROM mcr.microsoft.com/dotnet/sdk:9.0 as build-env # Copy everything and publish the release (publish implicitly restores and builds) WORKDIR /app COPY . ./ -RUN dotnet publish "CleanRepo.csproj" -c Release -o out --no-self-contained +RUN dotnet publish "./cleanrepo/CleanRepo.csproj" -c Release -o out --no-self-contained # Relayer the .NET SDK, anew with the build output FROM mcr.microsoft.com/dotnet/sdk:9.0 diff --git a/cleanrepo/action.yml b/cleanrepo/action.yml index 33409fa5..75200abc 100644 --- a/cleanrepo/action.yml +++ b/cleanrepo/action.yml @@ -20,7 +20,7 @@ inputs: required: true runs: using: docker - image: Dockerfile + image: ../cleanrepo/Dockerfile args: - '/Options:Function' - ${{ inputs.function }}