Skip to content

Commit

Permalink
Add step for variables
Browse files Browse the repository at this point in the history
  • Loading branch information
mwithi authored Jul 23, 2024
1 parent d4892e7 commit d438c77
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/release-announcement.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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" \
Expand Down

0 comments on commit d438c77

Please sign in to comment.