[dev] Monorepo: improve changelogger prompts in CI. (#51995)
This commit is contained in:
parent
a16f11ad6e
commit
f469bba6f2
|
@ -220,10 +220,10 @@ foreach ( $touched_projects as $slug => $files ) {
|
||||||
} elseif ( getenv( 'CI' ) ) {
|
} elseif ( getenv( 'CI' ) ) {
|
||||||
printf( "---\n" ); // Bracket message containing newlines for better visibility in GH's logs.
|
printf( "---\n" ); // Bracket message containing newlines for better visibility in GH's logs.
|
||||||
printf(
|
printf(
|
||||||
"::error::Project %s is being changed, but no change file in %s is touched!\n\nUse `pnpm --filter=./%s changelog add` to add a change file.\n",
|
"::error::Project %s is being changed, but no change file in %s is touched!\n\nUse `pnpm --filter='%s' changelog add` to add a change file.\n",
|
||||||
$slug,
|
$slug,
|
||||||
"$slug/{$changelogger_projects[ $slug ]['changes-dir']}/",
|
"$slug/{$changelogger_projects[ $slug ]['changes-dir']}/",
|
||||||
$slug
|
json_decode( file_get_contents( sprintf( './%s/package.json', $slug ) ), true )['name'] ?? ( './' . $slug )
|
||||||
);
|
);
|
||||||
printf( "---\n" );
|
printf( "---\n" );
|
||||||
$exit = 1;
|
$exit = 1;
|
||||||
|
|
Loading…
Reference in New Issue