Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
parent
d74037134b
commit
283b4cd2f4
@ -67,6 +67,24 @@ async fn main() -> anyhow::Result<()> {
|
|||||||
);
|
);
|
||||||
|
|
||||||
let client = reqwest::Client::new();
|
let client = reqwest::Client::new();
|
||||||
|
|
||||||
|
match client
|
||||||
|
.delete(&template_url)
|
||||||
|
.bearer_auth(&drone_token)
|
||||||
|
.send()
|
||||||
|
.await
|
||||||
|
{
|
||||||
|
Ok(res) => match res.error_for_status() {
|
||||||
|
Ok(_) => {}
|
||||||
|
Err(status) => {
|
||||||
|
tracing::warn!("failed to delete template {}", status);
|
||||||
|
}
|
||||||
|
},
|
||||||
|
Err(e) => {
|
||||||
|
tracing::error!("{}", e);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
let res = client
|
let res = client
|
||||||
.put(&template_url)
|
.put(&template_url)
|
||||||
.bearer_auth(&drone_token)
|
.bearer_auth(&drone_token)
|
||||||
|
Loading…
Reference in New Issue
Block a user