Skip to content

Commit

Permalink
Update xml.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Konard authored Oct 18, 2019
1 parent f1f76bb commit 10f91a4
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/xml.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,17 @@ jobs:
echo $REPOSITORY_NAME
export PACKAGE_VERSION=$(xmlstarlet sel -t -m '//VersionPrefix[1]' -v . -n <Platform.$REPOSITORY_NAME/Platform.$REPOSITORY_NAME.csproj)
echo $PACKAGE_VERSION
echo $PACKAGE_VERSION > PACKAGE_VERSION.txt
export PACKAGE_RELEASE_NOTES=$(xmlstarlet sel -t -m '//PackageReleaseNotes[1]' -v . -n <Platform.$REPOSITORY_NAME/Platform.$REPOSITORY_NAME.csproj)
echo $PACKAGE_RELEASE_NOTES
echo $PACKAGE_RELEASE_NOTES > PACKAGE_RELEASE_NOTES.txt
curl --request POST \
--url https://api.github.com/repos/${{ github.repository }}/releases \
--header 'authorization: Bearer ${{ secrets.GITHUB_TOKEN }}' \
--header 'content-type: application/json' \
--data '{
"tag_name": "${PACKAGE_VERSION}",
"target_commitish": "master",
"name": "${PACKAGE_VERSION}",
"body": "${PACKAGE_RELEASE_NOTES}",
"draft": false,
"prerelease": false
}'

0 comments on commit 10f91a4

Please sign in to comment.