Browse Source

fix: checkout@v2 bug with annotated tags

https://github.com/actions/checkout/issues/290
tophf 4 years ago
parent
commit
d5e086f5b1
1 changed files with 1 additions and 1 deletions
  1. 1 1
      scripts/action-helper.js

+ 1 - 1
scripts/action-helper.js

@@ -38,7 +38,7 @@ Object.entries(envs).forEach(([key, value]) => {
 
 function listCommits() {
   const exec = cmd => childProcess.execSync(cmd, {encoding: 'utf8'}).trim();
-  const thisTag = exec('git describe --abbrev=0');
+  const thisTag = exec('git describe --abbrev=0 --tags');
   const prevTag = exec(`git describe --abbrev=0 --tags "${thisTag}^"`);
   return exec(`git log --oneline --skip=1 --reverse "${prevTag}...${thisTag}"`)
   .split('\n')