Skip to content

Commit 9fdd496

Browse files
Merge pull request #43 from dev-sec/version_checkout
use commitish
2 parents 2cdcc88 + 05d506a commit 9fdd496

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -66,25 +66,22 @@ jobs:
6666
with:
6767
ref: master
6868

69-
- name: Debug commitish
70-
run: |
71-
echo "commitish: ${GITHUB_SHA}"
72-
7369
- name: Get current commitish
7470
id: current_commitish
7571
run: echo "::set-output name=sha::$(git log -1 --format="%H")"
7672

77-
- name: Check outputs
73+
- name: Check it
7874
run: echo ${{ steps.current_commitish.outputs.sha }}
7975

8076
- name: Create Release draft
8177
id: create_release
82-
uses: actions/create-release@v1
78+
uses: actions/create-release@v1.1.2
8379
env:
8480
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
8581
with:
8682
release_name: ${{ steps.version.outputs.next-version }}
8783
tag_name: ${{ steps.version.outputs.next-version }}
8884
body: |
8985
${{ steps.package.outputs.content }}
86+
commitish: ${{ steps.current_commitish.outputs.sha }}
9087
draft: true

0 commit comments

Comments
 (0)