From 3ac6bccf559b8e449ad0e68f58637ae3884f9b5d Mon Sep 17 00:00:00 2001 From: Andrew Katz Date: Mon, 24 Oct 2022 14:50:17 -0700 Subject: [PATCH] Use creatordate to fetch latest tag, as taggerdate does not sort properly --- main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.js b/main.js index 7f6c00b..0fd60c1 100644 --- a/main.js +++ b/main.js @@ -1,7 +1,7 @@ const { exec } = require('child_process'); const fs = require('fs'); -exec(`git for-each-ref --sort=-taggerdate --count 1 --format="%(refname:short)" "refs/tags/*"`, (err, tag, stderr) => { +exec(`git for-each-ref --sort=-creatordate --count 1 --format="%(refname:short)" "refs/tags/*"`, (err, tag, stderr) => { tag = tag.trim(); if (err) {