Skip to content

Commit

Permalink
Gets latest tag
Browse files Browse the repository at this point in the history
  • Loading branch information
dakota002 committed Jul 22, 2024
1 parent 00ddb48 commit 7548222
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion validate.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { execa, ExecaError } from 'execa'

let ref
try {
const { stdout } = await execa`git describe --exact-match --tags`
const { stdout } = await execa`git describe --tags --abbrev=0`
ref = stdout
} catch (e) {
if (e instanceof ExecaError && e.failed) ref = 'main'
Expand Down

0 comments on commit 7548222

Please sign in to comment.