Use Github Actions for CI, date bump (#16269)
This commit is contained in:
parent
64ebec50dc
commit
87992f3669
5 changed files with 140 additions and 84 deletions
17
buildroot/bin/bump_date
Executable file
17
buildroot/bin/bump_date
Executable file
|
|
@ -0,0 +1,17 @@
|
|||
#!/usr/bin/env bash
|
||||
#
|
||||
# bump_date
|
||||
#
|
||||
# Bump the Distribution Date in Version.h
|
||||
#
|
||||
|
||||
VERSION_FILE=Marlin/src/inc/Version.h
|
||||
|
||||
SED=$(which gsed || which sed)
|
||||
|
||||
DIST=$( date +"%Y-%m-%d" )
|
||||
|
||||
eval "${SED} -E -i 's/(#define +STRING_DISTRIBUTION_DATE) .*$/\1 \"$DIST\"/g' $VERSION_FILE" || exit 1
|
||||
|
||||
git add "$VERSION_FILE" || exit 1
|
||||
git commit -m "[cron] Bump distribution date ($DIST)"
|
||||
Loading…
Add table
Add a link
Reference in a new issue