From f150ec04a09204be46d95482de30feb6d6debfe5 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Thu, 19 Sep 2019 09:09:41 -0700 Subject: Nightly - fix date setting on windows. --- .github/workflows/nightly.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index 516aaeb8b..9fe98cf2c 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -55,9 +55,9 @@ jobs: - name: Build artifacts shell: cmd run: | - for /f "tokens=2,3,4 usebackq delims=:/ " %a in ('%date%') do set OURDATE=%%c-%%a-%%b - export SUFFIX=nightly-%OURDATE% - export ARTIFACTS=nightly-windows + for /f %%a in ('powershell -Command "Get-Date -format yyyy-MM-dd"') do set THEDATE=%%a + set SUFFIX=nightly-%THEDATE% + set ARTIFACTS=nightly-windows mkdir %ARTIFACTS% stack build pandoc pandoc-citeproc forfiles /P .\.stack-work\install /M pandoc*.exe /S /C "cmd /C copy @path %ARTIFACTS%" -- cgit v1.2.3