Compare commits
2
Commits
75ade89f34
..
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e3dda5e115 | ||
|
|
e35b4bb90d |
@@ -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 = "{{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;
|
||||
|
||||
Reference in New Issue
Block a user