mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-07-06 12:06:49 +00:00
Merge pull request #9278 from wainersm/github_env_fix
tests: fix nounset error with $GITHUB_ENV
This commit is contained in:
commit
2c50d3c393
@ -213,7 +213,7 @@ function run_tests() {
|
|||||||
# In case of running on Github workflow it needs to save the start time
|
# In case of running on Github workflow it needs to save the start time
|
||||||
# on the environment variables file so that the variable is exported on
|
# on the environment variables file so that the variable is exported on
|
||||||
# next workflow steps.
|
# next workflow steps.
|
||||||
if [ -n "$GITHUB_ENV" ]; then
|
if [ -n "${GITHUB_ENV:-}" ]; then
|
||||||
start_time=$(date '+%Y-%m-%d %H:%M:%S')
|
start_time=$(date '+%Y-%m-%d %H:%M:%S')
|
||||||
export start_time
|
export start_time
|
||||||
echo "start_time=${start_time}" >> "$GITHUB_ENV"
|
echo "start_time=${start_time}" >> "$GITHUB_ENV"
|
||||||
|
@ -95,7 +95,7 @@ function run() {
|
|||||||
|
|
||||||
enabling_hypervisor
|
enabling_hypervisor
|
||||||
|
|
||||||
if [ -n "$GITHUB_ENV" ]; then
|
if [ -n "${GITHUB_ENV:-}" ]; then
|
||||||
start_time=$(date '+%Y-%m-%d %H:%M:%S')
|
start_time=$(date '+%Y-%m-%d %H:%M:%S')
|
||||||
export start_time
|
export start_time
|
||||||
echo "start_time=${start_time}" >> "$GITHUB_ENV"
|
echo "start_time=${start_time}" >> "$GITHUB_ENV"
|
||||||
|
Loading…
Reference in New Issue
Block a user