fetch tags before looking for them

in case tags were created outside this action (see #5)
This commit is contained in:
mathieudutour 2020-01-13 10:34:57 +01:00
parent 861ef9e87f
commit 1308fda634
1 changed files with 2 additions and 0 deletions

View File

@ -62,6 +62,8 @@ async function run() {
.split(",")
.every(branch => !GITHUB_REF.replace("refs/heads/", "").match(branch));
await exec("git fetch --tags");
const hasTag = !!(await exec("git tag")).stdout.trim();
let tag = "";
let logs = "";