]> git.99rst.org Git - irssi-scripts.irssi.org.git/commitdiff
quiet the scripts.yaml update step in github actions
authorAilin Nemui <redacted>
Sun, 25 Jan 2026 11:56:06 +0000 (12:56 +0100)
committerAilin Nemui <redacted>
Sun, 25 Jan 2026 13:36:36 +0000 (14:36 +0100)
.github/workflows/test.yml
_testing/update-scripts-yaml.pl

index f31c866c50075f8e1923ae59c3f3f76fe139b150..2317d596272b6d731abe4be2be719f517d573f1e 100644 (file)
@@ -101,7 +101,7 @@ jobs:
           ./_testing/github/show-failures.zsh
       - name: update scripts.yaml
         run: |
-          perl ./_testing/update-scripts-yaml.pl
+          perl ./_testing/update-scripts-yaml.pl -q
       - name: show git changes
         if: ${{ github.event_name == 'pull_request' }}
         run: |
index 91c837a13a96b63c0df051751b06556acdae0e19..c44522bad13aa5b028195fa8d821684608a9f5a6 100644 (file)
@@ -18,6 +18,8 @@ for (@{$docs[0]//[]}) {
     $oldmeta{$_->{filename}} = $_;
 }
 
+my $quiet_mode = @ARGV && $ARGV[0] eq '-q';
+
 my %newmeta;
 for my $file (<scripts/*.pl scripts/*.py>) {
     my ($filename, $base, $ext) =
@@ -53,8 +55,9 @@ for my $file (<scripts/*.pl scripts/*.py>) {
             if @commands;
     }
     elsif (exists $oldmeta{$filename}) {
-        print "META-INF FOR $base NOT FOUND\n";
-        system "ls 'Test/$base/'*";
+        print "META-INF FOR $base NOT FOUND, not updating\n"
+           unless $quiet_mode;
+        system "ls 'Test/$base/'* 2>/dev/null";
         $newmeta{$filename} = $oldmeta{$filename};
     }
     else {
git clone https://git.99rst.org/PROJECT