feat: update templater
Some checks failed
continuous-integration/drone/push Build is failing

Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
Kasper Juul Hermansen 2024-03-30 14:23:52 +01:00
parent d74037134b
commit 283b4cd2f4
Signed by: kjuulh
GPG Key ID: 9AA7BC13CE474394

View File

@ -67,6 +67,24 @@ async fn main() -> anyhow::Result<()> {
);
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
.put(&template_url)
.bearer_auth(&drone_token)