File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ name: "Bump Version"
33on :
44 push :
55 branches :
6- - " master "
6+ - " playground "
77
88jobs :
99 bump-version :
2222 with :
2323 node-version : 12
2424 - name : " Automated Version Bump"
25- uses : " kaangokdemir/github-version-bumper@master "
25+ uses : " kaangokdemir/github-version-bumper@playground "
2626 env :
2727 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
2828 VERSION_FILE_NAME : " package.json"
Original file line number Diff line number Diff line change @@ -30,11 +30,15 @@ Toolkit.run(async (tools) => {
3030 ] )
3131
3232 const currentBranch = / r e f s \/ [ a - z A - Z ] + \/ ( .* ) / . exec (
33- process . env . GITHUB_REF ,
33+ process . env . GITHUB_REF
3434 ) [ 1 ]
3535
3636 await tools . runInWorkspace ( 'git' , [ 'checkout' , currentBranch ] )
3737
38+ const lastCommitMessage = tools . runInWorkspace (
39+ 'git' [ ( 'log' , '-1 --pretty=%B' ) ]
40+ )
41+ console . log ( 'lcm' , lastCommitMessage )
3842 // BUMPING STARTS
3943 await bump ( fileName )
4044
You can’t perform that action at this time.
0 commit comments