Skip to content

Commit

Permalink
get commit in release step
Browse files Browse the repository at this point in the history
  • Loading branch information
richardsondev committed Nov 25, 2020
1 parent 98cdb53 commit aa328da
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,11 @@ jobs:
name: Create Release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
name: Checkout Code
- name: Set variables
id: vars
run: echo "::set-output name=sha_short::$(git rev-parse --short HEAD)"

- name: Create Release
id: create_release
uses: actions/create-release@v1
Expand All @@ -20,6 +21,7 @@ jobs:
with:
tag_name: ${{ steps.vars.outputs.sha_short }}
release_name: Release ${{ steps.vars.outputs.sha_short }}
body: New release ${{ steps.vars.outputs.sha_short }}
draft: false
prerelease: false

Expand Down

0 comments on commit aa328da

Please sign in to comment.