mirror of
https://github.com/mjl-/mox.git
synced 2024-12-25 16:03:48 +03:00
apidiff: properly check against actual previous version
not hardcoded v0.0.8...
This commit is contained in:
parent
ecf60568b4
commit
c698cd07d9
1 changed files with 1 additions and 1 deletions
|
@ -5,7 +5,7 @@ prevversion=$(go list -mod=readonly -m -f '{{ .Version }}' github.com/mjl-/mox@l
|
|||
nextversion=$(cat next.txt)
|
||||
if ! test -d tmp/mox-$prevversion; then
|
||||
mkdir -p tmp/mox-$prevversion
|
||||
git archive --format=tar v0.0.8 | tar -C tmp/mox-$prevversion -xf -
|
||||
git archive --format=tar $prevversion | tar -C tmp/mox-$prevversion -xf -
|
||||
fi
|
||||
(rm -r tmp/apidiff || exit 0)
|
||||
mkdir -p tmp/apidiff/$prevversion tmp/apidiff/next
|
||||
|
|
Loading…
Reference in a new issue