vars.rs

 1use gh_workflow::WorkflowCallInput;
 2
 3macro_rules! secret {
 4    ($secret_name:ident) => {
 5        pub const $secret_name: &str = concat!("${{ secrets.", stringify!($secret_name), " }}");
 6    };
 7}
 8
 9secret!(GITHUB_TOKEN);
10secret!(CACHIX_AUTH_TOKEN);
11secret!(ZED_CLIENT_CHECKSUM_SEED);
12secret!(ZED_MINIDUMP_ENDPOINT);
13secret!(ZED_CLOUD_PROVIDER_ADDITIONAL_MODELS_JSON);
14
15pub fn input(name: &str, input: WorkflowCallInput) -> (String, (&str, WorkflowCallInput)) {
16    return (format!("${{{{ inputs.{name} }}}}"), (name, input));
17}