Skip to content

Commit

Permalink
change how current branch is figured out
Browse files Browse the repository at this point in the history
  • Loading branch information
iautom8things committed Jun 26, 2021
1 parent aad03a9 commit 7801d84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ async function run() {
const changePath = core.getInput('change_path') || '';

const onHead = versionBranch === 'HEAD';
const branch = (await cmd('git', 'rev-parse', '--abbrev-ref', 'HEAD')).trim();
const branch = (await cmd('git', 'branch', '--show-current')).trim();

if (onHead) {
versionBranch = (await cmd('git', 'rev-parse', 'HEAD')).trim();
Expand Down

0 comments on commit 7801d84

Please sign in to comment.