fix: bug with locating the previous tag (#1470)
Co-authored-by: GitHub Action <action@github.com>
This commit is contained in:
parent
18bacaab15
commit
fc63326544
2
dist/index.js
generated
vendored
2
dist/index.js
generated
vendored
@ -2216,7 +2216,7 @@ const verifyCommitSha = ({ sha, cwd, showAsErrorMessage = true }) => __awaiter(v
|
|||||||
});
|
});
|
||||||
exports.verifyCommitSha = verifyCommitSha;
|
exports.verifyCommitSha = verifyCommitSha;
|
||||||
const getPreviousGitTag = ({ cwd }) => __awaiter(void 0, void 0, void 0, function* () {
|
const getPreviousGitTag = ({ cwd }) => __awaiter(void 0, void 0, void 0, function* () {
|
||||||
const { stdout } = yield exec.getExecOutput('git', ['tag', '--sort=-version:refname'], {
|
const { stdout } = yield exec.getExecOutput('git', ['tag', '--sort=-creatordate'], {
|
||||||
cwd,
|
cwd,
|
||||||
silent: !core.isDebug()
|
silent: !core.isDebug()
|
||||||
});
|
});
|
||||||
|
2
dist/index.js.map
generated
vendored
2
dist/index.js.map
generated
vendored
File diff suppressed because one or more lines are too long
@ -739,7 +739,7 @@ export const getPreviousGitTag = async ({
|
|||||||
}): Promise<{tag: string; sha: string}> => {
|
}): Promise<{tag: string; sha: string}> => {
|
||||||
const {stdout} = await exec.getExecOutput(
|
const {stdout} = await exec.getExecOutput(
|
||||||
'git',
|
'git',
|
||||||
['tag', '--sort=-version:refname'],
|
['tag', '--sort=-creatordate'],
|
||||||
{
|
{
|
||||||
cwd,
|
cwd,
|
||||||
silent: !core.isDebug()
|
silent: !core.isDebug()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user