Also pipe the contents to GITHUB_ENV

This commit is contained in:
Greyscale 2024-05-18 17:36:44 +02:00
parent b1dcd679ab
commit de820cbde5

View file

@ -13,8 +13,7 @@ runs:
echo "time=$(date +'%H:%M:%S')" echo "time=$(date +'%H:%M:%S')"
echo "atom=$(date -u +'%Y-%m-%dT%H:%M:%SZ')" echo "atom=$(date -u +'%Y-%m-%dT%H:%M:%SZ')"
echo "atom_with_millis=$(date -u +'%Y-%m-%dT%H:%M:%S.%3NZ')" echo "atom_with_millis=$(date -u +'%Y-%m-%dT%H:%M:%S.%3NZ')"
} >> "$GITHUB_OUTPUT" } | tee -a "$GITHUB_OUTPUT" >> "$GITHUB_ENV"
outputs: outputs:
datetime: datetime:
description: "Current date and time in 'YYYY-MM-DD HH:MM:SS' format" description: "Current date and time in 'YYYY-MM-DD HH:MM:SS' format"