Skip to content

Commit

Permalink
Add logging message to release_draft.yml file.
Browse files Browse the repository at this point in the history
  • Loading branch information
miroslavpojer committed Jan 29, 2024
1 parent c5a3a82 commit 6fea6a9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/release_draft.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ jobs:
repo: context.repo.repo,
ref: 'tags/'
});
console.log(`Existing tags: ${refs.map(ref => ref.ref.replace('refs/tags/', '')).join(', ')}`);
const latestTag = refs.sort((a, b) => new Date(b.object.date) - new Date(a.object.date))[0].ref.replace('refs/tags/', '');
console.log(`Latest tag: ${latestTag}`);
Expand Down

0 comments on commit 6fea6a9

Please sign in to comment.