fix: take the release-check version from the recipe argument
Test / test (push) Canceled after 44s

This commit is contained in:
2026-09-22 21:48:00 +02:00
parent 75ade89f34
commit e35b4bb90d
+3 -1
View File
@@ -118,7 +118,9 @@ example:
# The release pre-flight, in one command: the branch, a clean tree, a sync with origin, the gates, and a CHANGELOG section ready to release. Not a gate, it is the checklist before a release may even be discussed.
release-check version:
#!/usr/bin/env perl
my ($version) = @ARGV;
# The version arrives through the recipe interpolation: just does not hand
# positional arguments to a shebang script's @ARGV.
my $version = q{ {{version}} };
$version =~ m{\Av?\d+\.\d+\.\d+\z} or die qq{usage: just release-check X.Y.Z\n};
my $branch = qx{git rev-parse --abbrev-ref HEAD};
chomp $branch;