From de820cbde517c0954baeabf1e09fffebead2bb67 Mon Sep 17 00:00:00 2001
From: Matthew Baggett <matthew@baggett.me>
Date: Sat, 18 May 2024 17:36:44 +0200
Subject: [PATCH] Also pipe the contents to GITHUB_ENV

---
 action.yml | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

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