Merge pull request #9358 from GabyCT/topic/nerdrandom

gha: Update journal log names for nerdctl artifacts
This commit is contained in:
Alex Lyn 2024-04-01 09:50:16 +08:00 committed by GitHub
commit aa9cd232cd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -70,7 +70,7 @@ function collect_artifacts() {
fi
mkdir -p "${artifacts_dir}"
info "Collecting artifacts using ${KATA_HYPERVISOR} hypervisor"
local journalctl_log_filename="journalctl.log"
local journalctl_log_filename="journalctl-$RANDOM.log"
local journalctl_log_path="${artifacts_dir}/${journalctl_log_filename}"
sudo journalctl --since="$start_time" > "${journalctl_log_path}"
}