Skip to content

Commit a321303

Browse files
committed
pg
1 parent 1ee2111 commit a321303

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

.github/workflows/push.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: "Bump Version"
33
on:
44
push:
55
branches:
6-
- "master"
6+
- "playground"
77

88
jobs:
99
bump-version:
@@ -22,7 +22,7 @@ jobs:
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"

index.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,15 @@ Toolkit.run(async (tools) => {
3030
])
3131

3232
const currentBranch = /refs\/[a-zA-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

0 commit comments

Comments
 (0)