Skip to content

Commit 2d99d2f

Browse files
Avoid dependabot error
Avoid "not a valid version string" error when dependabot jobs run.
1 parent 28661a3 commit 2d99d2f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
<AssemblyVersion>5.0.0.0</AssemblyVersion>
4545
<VersionPrefix>5.0.1</VersionPrefix>
4646
</PropertyGroup>
47-
<PropertyGroup Condition=" '$(GITHUB_ACTIONS)' != '' ">
47+
<PropertyGroup Condition=" '$(GITHUB_ACTIONS)' != '' AND '$(DEPENDABOT_JOB_ID)' == '' ">
4848
<VersionSuffix Condition=" '$(VersionSuffix)' == '' AND '$(GITHUB_HEAD_REF)' == '' ">beta.$(GITHUB_RUN_NUMBER)</VersionSuffix>
4949
<VersionSuffix Condition=" '$(VersionSuffix)' == '' AND '$(GITHUB_HEAD_REF)' != '' ">pr.$(GITHUB_REF_NAME.Replace('/merge', '')).$(GITHUB_RUN_NUMBER)</VersionSuffix>
5050
<VersionPrefix Condition=" $(GITHUB_REF.StartsWith(`refs/tags/v`)) ">$(GITHUB_REF.Replace('refs/tags/v', ''))</VersionPrefix>

0 commit comments

Comments
 (0)