extensions.rs

 1use gh_workflow::{Job, UsesJob};
 2use indexmap::IndexMap;
 3
 4use crate::tasks::workflows::vars;
 5
 6pub(crate) mod bump_version;
 7pub(crate) mod run_tests;
 8
 9pub(crate) trait WithAppSecrets: Sized {
10    fn with_app_secrets(self) -> Self;
11}
12
13impl WithAppSecrets for Job<UsesJob> {
14    fn with_app_secrets(self) -> Self {
15        self.secrets(IndexMap::from([
16            ("app-id".to_owned(), vars::ZED_ZIPPY_APP_ID.to_owned()),
17            (
18                "app-secret".to_owned(),
19                vars::ZED_ZIPPY_APP_PRIVATE_KEY.to_owned(),
20            ),
21        ]))
22    }
23}