Skip to content
This repository was archived by the owner on Aug 30, 2025. It is now read-only.

Commit 167db47

Browse files
committed
ci: Added rule to copy commit hook to git folder
1 parent 37c1c51 commit 167db47

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

tests/PowerUtils.AspNetCore.ErrorHandler.Tests/PowerUtils.AspNetCore.ErrorHandler.Tests.csproj

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,14 @@
1515
</PropertyGroup>
1616

1717

18+
<Target Name="CopyHook" AfterTargets="AfterBuild" Condition="'$(GITHUB_ACTIONS)' != 'true' ">
19+
<ItemGroup>
20+
<CommitHookFile Include="../../.github/hooks/commit-msg" />
21+
</ItemGroup>
22+
<Copy SourceFiles="@(CommitHookFile)" DestinationFolder="../../.git/hooks" />
23+
</Target>
24+
25+
1826
<ItemGroup>
1927
<PackageReference Include="Moq" Version="4.18.2" />
2028
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.4.0" />

0 commit comments

Comments
 (0)