CI: trigger rebuilds for <v>t, too, if a patch for <v> is changed

This commit is contained in:
Ivan Pozdeev 2026-05-30 20:38:00 +03:00
parent 034e15b810
commit bfc595b0a0
No known key found for this signature in database
GPG Key ID: FB6A628DCF06DCD7

View File

@ -14,8 +14,11 @@ jobs:
run: > run: >
versions=$(git diff "origin/$GITHUB_BASE_REF" --name-only -z versions=$(git diff "origin/$GITHUB_BASE_REF" --name-only -z
| perl -ne 'BEGIN {$\="\n";$/="\0";} chomp; | perl -ne 'BEGIN {$\="\n";$/="\0";} chomp;
if (/^plugins\/python-build\/share\/python-build\/(?:([^\/]+)|patches\/([^\/]+)\/.*)$/ and -e $& ) if (/^(plugins\/python-build\/share\/python-build\/)(?:([^\/]+)|patches\/([^\/]+)\/.*)$/ and -e $& )
{ print $1.$2; }' \ {
print $2.$3;
if ( -e $1.$2.$3.t ) { print $2.$3.t; }
}' \
| sort -u); | sort -u);
EOF=$(dd if=/dev/urandom bs=15 count=1 status=none | base64); EOF=$(dd if=/dev/urandom bs=15 count=1 status=none | base64);
echo "versions<<$EOF" >> $GITHUB_ENV; echo "versions<<$EOF" >> $GITHUB_ENV;