File tree Expand file tree Collapse file tree 1 file changed +17
-3
lines changed Expand file tree Collapse file tree 1 file changed +17
-3
lines changed Original file line number Diff line number Diff line change 1010 runs-on : ubuntu-latest
1111 name : create release draft
1212 steps :
13- - uses : actions/checkout@v1
13+ - uses : actions/checkout@v2
14+ with :
15+ fetch-depth : 0
1416
1517 - name : ' Get Previous tag'
1618 id : previoustag
@@ -49,25 +51,37 @@ jobs:
4951 github-token : ${{ secrets.GITHUB_TOKEN }}
5052 push-branch : ' master'
5153 commit-message : ' update inspec.yml and changelog'
52- force-add : ' true'
5354 files : inspec.yml CHANGELOG.md
5455 name : dev-sec CI
5556 email : hello@dev-sec.io
57+ rebase : ' true'
5658
5759 - name : Read CHANGELOG.md
5860 id : package
5961 uses : juliangruber/read-file-action@v1
6062 with :
6163 path : ./CHANGELOGRELEASE.md
6264
65+ - uses : actions/checkout@v2
66+ with :
67+ ref : master
68+
69+ - name : Get current commitish
70+ id : current_commitish
71+ run : echo "::set-output name=sha::$(git log -1 --format="%H")"
72+
73+ - name : Check it
74+ run : echo ${{ steps.current_commitish.outputs.sha }}
75+
6376 - name : Create Release draft
6477 id : create_release
65- uses : actions/create-release@v1
78+ uses : actions/create-release@v1.1.2
6679 env :
6780 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
6881 with :
6982 release_name : ${{ steps.version.outputs.next-version }}
7083 tag_name : ${{ steps.version.outputs.next-version }}
7184 body : |
7285 ${{ steps.package.outputs.content }}
86+ commitish : ${{ steps.current_commitish.outputs.sha }}
7387 draft : true
You can’t perform that action at this time.
0 commit comments