Skip to content

Commit

Permalink
ci: do not use set-env, but github.event.head_commit.message directly
Browse files Browse the repository at this point in the history
  • Loading branch information
balta2ar committed May 29, 2022
1 parent cb6e70d commit 19ad3ba
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions .github/workflows/createrelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,8 @@ jobs:
GITHUB_CONTEXT: ${{ toJson(github) }}
run: echo "$GITHUB_CONTEXT"

- name: Get commit message
run: |
#echo ::set-env name=COMMITMSG::$(git log --format=%B -n 1 ${{ github.event.after }})
echo ::set-env name=COMMITMSG::$(git log --format=%B -n 1)
- name: Show commit message
run : echo $COMMITMSG
run : echo "${{ github.event.head_commit.message }}"

- name: Create Release
id: create_release
Expand All @@ -35,6 +30,6 @@ jobs:
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
body: "${{ env.COMMITMSG }}"
body: "${{ github.event.head_commit.message }}"
draft: true
prerelease: false

0 comments on commit 19ad3ba

Please sign in to comment.