From b21b304901599a70dc8d95725cfc83ccbf773ba3 Mon Sep 17 00:00:00 2001 From: Ralph Bean Date: Wed, 25 Sep 2024 07:45:26 -0400 Subject: [PATCH] Explicit export --- task/generate-labels/0.1/generate-labels.yaml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/task/generate-labels/0.1/generate-labels.yaml b/task/generate-labels/0.1/generate-labels.yaml index be3a56ff1a..c7fe9e7d52 100644 --- a/task/generate-labels/0.1/generate-labels.yaml +++ b/task/generate-labels/0.1/generate-labels.yaml @@ -47,15 +47,14 @@ spec: #!/bin/bash ACTUAL_DATE_EPOCH=$(date -u +'%s') - # shellcheck disable=SC2034 # Unused variable used implicitly in envsubst ACTUAL_DATE=$(date -u --date=@"$ACTUAL_DATE_EPOCH" +'%Y-%m-%dT%H:%M:%S') if [ "$SOURCE_DATE_EPOCH" == "" ]; then SOURCE_DATE_EPOCH="$ACTUAL_DATE_EPOCH" fi - # shellcheck disable=SC2034 # Unused variable used implicitly in envsubst SOURCE_DATE=$(date -u --date=@"$SOURCE_DATE_EPOCH" +'%Y-%m-%dT%H:%M:%S') + # Export, so that these are available to the subshell below export ACTUAL_DATE export ACTUAL_DATE_EPOCH export SOURCE_DATE