invoke update_version.sh while updating date because why not

This commit is contained in:
rusefillc 2022-01-31 00:16:52 -05:00
parent 7f39eff495
commit 700908d6d0
2 changed files with 12 additions and 0 deletions

View File

@ -21,6 +21,13 @@ jobs:
with:
fetch-depth: 0
- name: Install Tools
run: sudo apt-get install subversion
- name: Update version header in git
working-directory: ./firmware/
run: bash update_version.sh
- name: Write Date File
run: |
echo -e -n "#pragma once\n#define VCS_DATE $(date "+%Y%m%d")\n" > ./firmware/controllers/date_stamp.h

View File

@ -2,6 +2,11 @@
# Let's regenerate 'svnversion.h'
# TODO: handle std err - for example, in case svn needs upgrade
#
# 2022: is it time to rename svn_version.h into something else?
# we should probably remove VCS_VERSION and keep only GIT_HASH
#
GIT_HASH=$(git rev-parse HEAD)
echo "Git hash=$GIT_HASH"
java -jar ../java_tools/version2header.jar 10000 https://github.com/rusefi/rusefi $GIT_HASH