Skip to content

Commit 10f91a4

Browse files
authored
Update xml.yml
1 parent f1f76bb commit 10f91a4

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

.github/workflows/xml.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,17 @@ jobs:
1717
echo $REPOSITORY_NAME
1818
export PACKAGE_VERSION=$(xmlstarlet sel -t -m '//VersionPrefix[1]' -v . -n <Platform.$REPOSITORY_NAME/Platform.$REPOSITORY_NAME.csproj)
1919
echo $PACKAGE_VERSION
20-
echo $PACKAGE_VERSION > PACKAGE_VERSION.txt
2120
export PACKAGE_RELEASE_NOTES=$(xmlstarlet sel -t -m '//PackageReleaseNotes[1]' -v . -n <Platform.$REPOSITORY_NAME/Platform.$REPOSITORY_NAME.csproj)
2221
echo $PACKAGE_RELEASE_NOTES
23-
echo $PACKAGE_RELEASE_NOTES > PACKAGE_RELEASE_NOTES.txt
22+
curl --request POST \
23+
--url https://api.github.com/repos/${{ github.repository }}/releases \
24+
--header 'authorization: Bearer ${{ secrets.GITHUB_TOKEN }}' \
25+
--header 'content-type: application/json' \
26+
--data '{
27+
"tag_name": "${PACKAGE_VERSION}",
28+
"target_commitish": "master",
29+
"name": "${PACKAGE_VERSION}",
30+
"body": "${PACKAGE_RELEASE_NOTES}",
31+
"draft": false,
32+
"prerelease": false
33+
}'

0 commit comments

Comments
 (0)