Skip to content

Commit 20d2abf

Browse files
committed
enable referencing source link packages only if GITHUB_ACTIONS is true
1 parent 4bce17f commit 20d2abf

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/Smdn.MSBuild.ProjectAssets.Library/project/Project.props

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,12 @@ SPDX-License-Identifier: MIT
6868
source link
6969
-->
7070
<ItemGroup>
71-
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1" PrivateAssets="All"/>
71+
<PackageReference
72+
Include="Microsoft.SourceLink.GitHub"
73+
Condition="'$(GITHUB_ACTIONS)' == 'true'"
74+
Version="1.1.1"
75+
PrivateAssets="All"
76+
/>
7277
</ItemGroup>
7378

7479
<PropertyGroup Condition="'$(GITHUB_ACTIONS)' == 'true'">

0 commit comments

Comments
 (0)