From: Ailin Nemui Date: Sun, 25 Jan 2026 11:56:06 +0000 (+0100) Subject: quiet the scripts.yaml update step in github actions X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=8a1937121d61a2fcca7ec216ec363a93e4cb092f;p=irssi-scripts.irssi.org.git quiet the scripts.yaml update step in github actions --- diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index f31c866..2317d59 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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: | diff --git a/_testing/update-scripts-yaml.pl b/_testing/update-scripts-yaml.pl index 91c837a..c44522b 100644 --- a/_testing/update-scripts-yaml.pl +++ b/_testing/update-scripts-yaml.pl @@ -18,6 +18,8 @@ for (@{$docs[0]//[]}) { $oldmeta{$_->{filename}} = $_; } +my $quiet_mode = @ARGV && $ARGV[0] eq '-q'; + my %newmeta; for my $file () { my ($filename, $base, $ext) = @@ -53,8 +55,9 @@ for my $file () { 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 {