Skip to content

Commit de52d8c

Browse files
Avoid errors during dependabot jobs (#3866)
Avoid errors from files that cannot be compressed due to `npm install` not being run in dependabot jobs.
1 parent eeedd9a commit de52d8c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Swashbuckle.AspNetCore.ReDoc/Swashbuckle.AspNetCore.ReDoc.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@
8585
<ItemGroup>
8686
<CompressFiles Include="node_modules/redoc/bundles/redoc.standalone.js" />
8787
</ItemGroup>
88-
<Target Name="_CompressAssets" BeforeTargets="CheckForDuplicateItems">
88+
<Target Name="_CompressAssets" BeforeTargets="CheckForDuplicateItems" Condition=" '$(IsDependabotJob)' != 'true' ">
8989
<GZipCompress FilesToCompress="@(CompressFiles)" OutputDirectory="$(IntermediateOutputPath)CompressedAssets">
9090
<Output TaskParameter="CompressedFiles" ItemName="_CompressedAssetsFile" />
9191
</GZipCompress>

src/Swashbuckle.AspNetCore.SwaggerUI/Swashbuckle.AspNetCore.SwaggerUI.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@
7979
<ItemGroup>
8080
<CompressFiles Include="node_modules/swagger-ui-dist/**/*" Exclude="**/*/index.html;**/*/*.map;**/*/*.json;**/*/*.md;**/*/*.txt;**/*/swagger-ui-es-*" />
8181
</ItemGroup>
82-
<Target Name="_CompressAssets" BeforeTargets="CheckForDuplicateItems">
82+
<Target Name="_CompressAssets" BeforeTargets="CheckForDuplicateItems" Condition=" '$(IsDependabotJob)' != 'true' ">
8383
<GZipCompress FilesToCompress="@(CompressFiles)" OutputDirectory="$(IntermediateOutputPath)CompressedAssets">
8484
<Output TaskParameter="CompressedFiles" ItemName="_CompressedAssetsFile" />
8585
</GZipCompress>

0 commit comments

Comments
 (0)