Skip to content

Commit 83bf94b

Browse files
committed
Codacy issues fix.
1 parent 4a09cc4 commit 83bf94b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

publish-release.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ fi
99

1010
sudo apt-get install xmlstarlet
1111

12-
PACKAGE_VERSION=$(xmlstarlet sel -t -m '//VersionPrefix[1]' -v . -n <Platform.$REPOSITORY_NAME/Platform.$REPOSITORY_NAME.csproj)
13-
PACKAGE_RELEASE_NOTES=$(xmlstarlet sel -t -m '//PackageReleaseNotes[1]' -v . -n <Platform.$REPOSITORY_NAME/Platform.$REPOSITORY_NAME.csproj)
12+
PACKAGE_VERSION=$(xmlstarlet sel -t -m '//VersionPrefix[1]' -v . -n <"Platform.$REPOSITORY_NAME/Platform.$REPOSITORY_NAME.csproj")
13+
PACKAGE_RELEASE_NOTES=$(xmlstarlet sel -t -m '//PackageReleaseNotes[1]' -v . -n <"Platform.$REPOSITORY_NAME/Platform.$REPOSITORY_NAME.csproj")
1414

1515
TAG_ID=$(curl --request GET --url "https://api.github.com/repos/${GITHUB_REPOSITORY}/releases/tags/${PACKAGE_VERSION}" --header "authorization: Bearer ${GITHUB_TOKEN}" | jq -r '.id')
1616

@@ -20,7 +20,7 @@ if [ "$TAG_ID" != "null" ]; then
2020
fi
2121

2222
curl --request POST \
23-
--url https://api.github.com/repos/${GITHUB_REPOSITORY}/releases \
23+
--url "https://api.github.com/repos/$GITHUB_REPOSITORY/releases" \
2424
--header "authorization: Bearer ${GITHUB_TOKEN}" \
2525
--header 'content-type: application/json' \
2626
--data "{

0 commit comments

Comments
 (0)