fix: Correct task "Upload logs to object storage"
Correct task "Upload logs to object storage"
When the GITHUB_RUN_ID & GITHUB_RUN_NUMBER variable is undefined they return a "" string.
diff --git a/molecule/default/destroy.yml b/molecule/default/destroy.yml
index 6844201..a51c73f 100644
--- a/molecule/default/destroy.yml
+++ b/molecule/default/destroy.yml
@@ -63,8 +63,8 @@
- name: Upload logs to object storage
ignore_errors: True
when:
- - not lookup('env', 'GITHUB_RUN_ID') == ""
- - not lookup('env', 'GITHUB_RUN_NUMBER') == ""
+ - lookup('env', 'GITHUB_RUN_ID')|length > 0
+ - lookup('env', 'GITHUB_RUN_NUMBER')|length > 0
vars:
build_id: "{{ lookup('env', 'GITHUB_RUN_ID') }}-{{ lookup('env', 'GITHUB_RUN_NUMBER') }}"
container_name: atmosphere-ci-logs