notice_log

Function notice_log 

Source
pub fn notice_log(msg: &str, parameters: Option<LogParameters>)
Expand description

Creates a notice message and prints the message to the log.

This message will create an annotation.

GitHub’s Documentation: Setting a notice message

§Example usage

use actions_github::logger;
logger::notice_log("Step one is finished", None);

§Custom annotations

You can also set custom annotations to mention a specific line in a file. See LogParameters for more info.

use actions_github::logger;
logger::notice_log("Step one is finished", Some(logger::LogParameters {
    title: String::from("Step completed"),
    file: String::from(".github/workflows/test.yml"),
    line: 24,
    end_line: 27
}));