Skip to content

Commit 0d285a0

Browse files
hjgracaCopilot
andauthored
Update .github/workflows/publish-artifacts-examples-tests.yml
Co-authored-by: Copilot <[email protected]> Signed-off-by: Henrique Graca <[email protected]>
1 parent 0e494ce commit 0d285a0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/publish-artifacts-examples-tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,10 +99,10 @@ jobs:
9999
fi
100100
101101
# Check if project references this package via ProjectReference and convert to PackageReference
102-
if grep -q "<ProjectReference.*$packageName.csproj" "$project"; then
102+
if grep -q "<ProjectReference.*$packageName\.csproj" "$project"; then
103103
echo " - Converting ProjectReference $packageName to PackageReference version $packageVersion"
104104
# Remove the ProjectReference line
105-
sed -i "/<ProjectReference.*$packageName.csproj/d" "$project"
105+
sed -i "/<ProjectReference.*$packageName\.csproj/d" "$project"
106106
# Add PackageReference
107107
dotnet add "$project" package "$packageName" --version "$packageVersion" --source "local" --no-restore
108108
fi

0 commit comments

Comments
 (0)