Skip to content

Commit

Permalink
Merge pull request #176 from dakota002/GetLatestTag
Browse files Browse the repository at this point in the history
Get latest tag
  • Loading branch information
dakota002 authored Jul 22, 2024
2 parents 5c6a98e + 7548222 commit f2b21aa
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 f2b21aa

Please sign in to comment.