Skip to content

Commit

Permalink
Merge pull request #43 from dev-sec/version_checkout
Browse files Browse the repository at this point in the history
use commitish
  • Loading branch information
micheelengronne authored Jul 23, 2020
2 parents 2cdcc88 + 05d506a commit 9fdd496
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,25 +66,22 @@ jobs:
with:
ref: master

- name: Debug commitish
run: |
echo "commitish: ${GITHUB_SHA}"
- name: Get current commitish
id: current_commitish
run: echo "::set-output name=sha::$(git log -1 --format="%H")"

- name: Check outputs
- name: Check it
run: echo ${{ steps.current_commitish.outputs.sha }}

- name: Create Release draft
id: create_release
uses: actions/create-release@v1
uses: actions/create-release@v1.1.2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
with:
release_name: ${{ steps.version.outputs.next-version }}
tag_name: ${{ steps.version.outputs.next-version }}
body: |
${{ steps.package.outputs.content }}
commitish: ${{ steps.current_commitish.outputs.sha }}
draft: true

0 comments on commit 9fdd496

Please sign in to comment.