v2 #2

Merged
dzu merged 24 commits from dev into main 2026-02-21 11:06:58 +01:00
Showing only changes of commit 39dae4365d - Show all commits

use correct cache URL
All checks were successful
Build and update the action / build-and-upload (push) Successful in 2m46s

Artem Diachenko 2026-02-17 19:05:47 +00:00

View file

@ -65,9 +65,6 @@ struct Input {
/// Must be in UTF-8
#[parser(key_parser)]
key: CacheKey,
/// A server url to upload the cache to
#[default_str("${{ forgejo.api_url }}")]
base_url: String,
}
#[derive(Debug, thiserror::Error)]
@ -127,11 +124,7 @@ impl Client {
fn main() {
// parse inputs
let Input {
path,
key,
base_url,
} = Input::get();
let Input { path, key } = Input::get();
let actions_token = actions_token().unwrap();
// set up http client
@ -142,7 +135,7 @@ fn main() {
.unwrap();
let client = Client {
http_client,
base_url,
base_url: std::env::var("ACTIONS_CACHE_URL").unwrap(),
};
// collect and compress the cached files