Skip to content

Commit

Permalink
[workflows] update release job
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremmfr committed Aug 25, 2021
1 parent 8c64dc0 commit 6c61422
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/releases.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,14 @@ jobs:
uses: actions/checkout@v2
- name: Set env RELEASE_VERSION
run: echo "RELEASE_VERSION=$(echo ${GITHUB_REF} | cut -d'/' -f3)" >> $GITHUB_ENV
- name: Set env MESSAGE
run: echo "MESSAGE=$(git tag -l --format='%(contents)' ${RELEASE_VERSION})" >> $GITHUB_ENV
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: ${{ env.RELEASE_VERSION }}
body: ${{ env.MESSAGE }}
draft: false
prerelease: false
body: ${{ env.RELEASE_VERSION }}
draft: true
prerelease: false

0 comments on commit 6c61422

Please sign in to comment.