Fix variables #5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: SourceForge Release Announcement | |
on: | |
release: | |
types: [published] | |
push: | |
branches: | |
- mwithi-release-news-sf | |
jobs: | |
post-release-announcement: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out the code | |
uses: actions/checkout@v2 | |
- name: Create Release Announcement on SourceForge | |
env: | |
SOURCEFORGE_BEARER: ${{ secrets.SOURCEFORGE_BEARER }} | |
GITHUB_REPOSITORY: ${{ github.repository }} | |
RELEASE_NAME: ${{ github.event.release.name }} || "Test" | |
RELEASE_BODY: ${{ github.event.release.body }} || "Empty body" | |
run: | | |
curl -X POST -H "Content-Type: application/x-www-form-urlencoded" \ | |
-H "Authorization: Bearer $SOURCEFORGE_BEARER" \ | |
-d "labels=release" \ | |
-d "state=draft" \ | |
-d "text=$RELEASE_BODY" \ | |
-d "title=$RELEASE_NAME" \ | |
"https://sourceforge.net/rest/p/openhospital/blog" |