File tree 1 file changed +17
-3
lines changed
1 file changed +17
-3
lines changed Original file line number Diff line number Diff line change 10
10
runs-on : ubuntu-latest
11
11
name : create release draft
12
12
steps :
13
- - uses : actions/checkout@v1
13
+ - uses : actions/checkout@v2
14
+ with :
15
+ fetch-depth : 0
14
16
15
17
- name : ' Get Previous tag'
16
18
id : previoustag
@@ -49,25 +51,37 @@ jobs:
49
51
github-token : ${{ secrets.GITHUB_TOKEN }}
50
52
push-branch : ' master'
51
53
commit-message : ' update inspec.yml and changelog'
52
- force-add : ' true'
53
54
files : inspec.yml CHANGELOG.md
54
55
name : dev-sec CI
55
56
57
+ rebase : ' true'
56
58
57
59
- name : Read CHANGELOG.md
58
60
id : package
59
61
uses : juliangruber/read-file-action@v1
60
62
with :
61
63
path : ./CHANGELOGRELEASE.md
62
64
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
+
63
76
- name : Create Release draft
64
77
id : create_release
65
- uses : actions/create-release@v1
78
+ uses : actions/create-release@v1.1.2
66
79
env :
67
80
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
68
81
with :
69
82
release_name : ${{ steps.version.outputs.next-version }}
70
83
tag_name : ${{ steps.version.outputs.next-version }}
71
84
body : |
72
85
${{ steps.package.outputs.content }}
86
+ commitish : ${{ steps.current_commitish.outputs.sha }}
73
87
draft : true
You can’t perform that action at this time.
0 commit comments