diff --git a/.github/workflows/release-announcement.yml b/.github/workflows/release-announcement.yml index 046d3dc9..ccf82cfe 100644 --- a/.github/workflows/release-announcement.yml +++ b/.github/workflows/release-announcement.yml @@ -15,12 +15,17 @@ jobs: - name: Check out the code uses: actions/checkout@v2 + - name: Set Default Release Variables + id: set-vars + run: | + echo "RELEASE_NAME=${{ github.event.release.name || 'Test' }}" >> $GITHUB_ENV + echo "RELEASE_BODY=${{ github.event.release.body || 'Empty body' }}" >> $GITHUB_ENV + - 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" + RELEASE_NAME: ${{ env.RELEASE_NAME }} + RELEASE_BODY: ${{ env.RELEASE_BODY }} run: | curl -X POST -H "Content-Type: application/x-www-form-urlencoded" \ -H "Authorization: Bearer $SOURCEFORGE_BEARER" \