Skip to content

Commit

Permalink
Update windows.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
AlbrechtL authored Aug 31, 2024
1 parent 087599d commit a21937b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,14 @@ jobs:
set year=%datetime:~0,4%
set month=%datetime:~4,2%
set day=%datetime:~6,2%
set current_date=%year%%month%%day% >> $env::GITHUB_ENV
echo current_date=%year%%month%%day% >> $GITHUB_ENV
echo Create git hash
for /f %%i in ('git -C %GITHUB_WORKSPACE% rev-parse --short HEAD') do set git_hash=%%i >> $env::GITHUB_ENV
for /f %%i in ('git -C %GITHUB_WORKSPACE% rev-parse --short HEAD') do set git_hash=%%i
echo git_hash=%git_hash% >> $GITHUB_ENV
echo Create version
set file_version=%current_date%_%git_hash% >> $env::GITHUB_ENV
echo file_version=%current_date%_%git_hash% >> $GITHUB_ENV
echo Create a build directory
cd ..\
Expand Down

0 comments on commit a21937b

Please sign in to comment.