From 30de99c40e151312bc001e806365220da4448508 Mon Sep 17 00:00:00 2001 From: Chris Schnaufer Date: Tue, 23 Jul 2024 11:30:30 -0700 Subject: [PATCH] Working on releases --- .github/workflows/tagged-release.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/tagged-release.yml b/.github/workflows/tagged-release.yml index 56271a3..65e81fb 100644 --- a/.github/workflows/tagged-release.yml +++ b/.github/workflows/tagged-release.yml @@ -31,6 +31,17 @@ jobs: - name: set date env var run: echo "NOW=$(date +'%Y.%m.%d')" >> $GITHUB_ENV + - name: set date env var + run: - + if [ "$RUNNER_OS" == "Windows" ]; then + echo "Windows Date" + $NOW=& Get-Date -format yyyy-MM-dd + echo "NOW=$NOW" >> $env:GITHUB_ENV + else + echo "*nix Date" + echo "NOW=$(date +'%Y.%m.%d')" >> $GITHUB_ENV + fi + - name: Upload release assets uses: softprops/action-gh-release@v2 env: