Skip to content

Commit

Permalink
update: handle tags IV
Browse files Browse the repository at this point in the history
  • Loading branch information
julien-capellari committed Mar 15, 2021
1 parent 4b13f57 commit ed0a473
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ const yarn = require('./yarn');
}

// Fetch tags
const fetch = await core.group('git fetch --tags', async () => {
const tags = await core.group('git fetch --tags', async () => {
const result = await git.fetch(['--tags']);
core.info(result.raw);

return result;
return await git.tags();
});

// Fetch base
Expand All @@ -39,7 +39,7 @@ const yarn = require('./yarn');
});

// Compute diff
const isTag = fetch.tags.some(tag => tag.name === inputs.base);
const isTag = tags.all.some(tag => tag === inputs.base);
let baseRef = inputs.base;

if (!isTag) {
Expand Down

0 comments on commit ed0a473

Please sign in to comment.