aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2019-09-19 09:09:41 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2019-09-19 09:09:41 -0700
commitf150ec04a09204be46d95482de30feb6d6debfe5 (patch)
tree6d81d97d834a3076dc6a32b47fb6d14a97573244
parent3ef628d968b841fbaf6f09e93585b20c8afe623b (diff)
downloadpandoc-f150ec04a09204be46d95482de30feb6d6debfe5.tar.gz
Nightly - fix date setting on windows.
-rw-r--r--.github/workflows/nightly.yml6
1 files 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%"