2 Commits
Author SHA1 Message Date
petrbalvin e3dda5e115 fix: take the release-check version from the recipe argument
Test / test (push) Successful in 1m46s
Release / gates (push) Successful in 1m36s
Release / release (push) Successful in 39s
2026-09-22 21:49:05 +02:00
petrbalvin e35b4bb90d fix: take the release-check version from the recipe argument
Test / test (push) Canceled after 44s
2026-09-22 21:48:00 +02:00
+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. # 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: release-check version:
#!/usr/bin/env perl #!/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 = "{{version}}";
$version =~ m{\Av?\d+\.\d+\.\d+\z} or die qq{usage: just release-check X.Y.Z\n}; $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}; my $branch = qx{git rev-parse --abbrev-ref HEAD};
chomp $branch; chomp $branch;