Skip to content

Commit c79b75a

Browse files
committed
Output notices in ci for updated strings
1 parent 09743ca commit c79b75a

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

tests/GenerateTestStrings.php

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,14 @@
4949
sort( $Tests );
5050
file_put_contents( $File, implode( "\n", $Tests ) . "\n" );
5151

52-
echo "Updated {$Type}.{$Name}\n";
52+
if( getenv( 'CI' ) !== false )
53+
{
54+
echo "::notice file={$File}::Updated {$Type}.{$Name} (please run GenerateTestStrings and commit it)\n";
55+
}
56+
else
57+
{
58+
echo "Updated {$Type}.{$Name}\n";
59+
}
5360
}
5461
}
5562

0 commit comments

Comments
 (0)