|
@@ -7,7 +7,7 @@ name: Bump Distribution Date
|
7
|
7
|
|
8
|
8
|
on:
|
9
|
9
|
schedule:
|
10
|
|
- - cron: '0 0 * * *'
|
|
10
|
+ - cron: '0 0 * * *'
|
11
|
11
|
|
12
|
12
|
jobs:
|
13
|
13
|
bump_date:
|
|
@@ -22,4 +22,13 @@ jobs:
|
22
|
22
|
ref: bugfix-2.0.x
|
23
|
23
|
|
24
|
24
|
- name: Bump Distribution Date
|
25
|
|
- run: source ./buildroot/bin/bump_date
|
|
25
|
+ run: |
|
|
26
|
+ # Inline Bump Script
|
|
27
|
+ [[ "$GITHUB_ACTOR" == 'MarlinFirmware' ]] || exit 0
|
|
28
|
+ DIST=$( date +"%Y-%m-%d" )
|
|
29
|
+ eval "sed -E -i 's/(#define +STRING_DISTRIBUTION_DATE) .*$/\1 \"$DIST\"/g' Marlin/src/inc/Version.h" && \
|
|
30
|
+ git config user.name "${GITHUB_ACTOR}" && \
|
|
31
|
+ git config user.email "${GITHUB_ACTOR}@users.noreply.github.com" && \
|
|
32
|
+ git add . && \
|
|
33
|
+ git commit -m "[cron] Bump distribution date ($DIST)" && \
|
|
34
|
+ git push
|