|
@@ -23,7 +23,27 @@ jobs:
|
23
|
23
|
with:
|
24
|
24
|
ref: bugfix-2.1.x
|
25
|
25
|
|
26
|
|
- - name: Bump Distribution Date
|
|
26
|
+ - name: Bump Date (bugfix-2.0.x)
|
|
27
|
+ run: |
|
|
28
|
+ # Inline Bump Script
|
|
29
|
+ if [[ ! "$( git log -1 --pretty=%B )" =~ ^\[cron\] ]]; then
|
|
30
|
+ DIST=$( date +"%Y-%m-%d" )
|
|
31
|
+ eval "sed -E -i 's/(#define +STRING_DISTRIBUTION_DATE) .*$/\1 \"$DIST\"/g' Marlin/src/inc/Version.h" && \
|
|
32
|
+ eval "sed -E -i 's/(#define +STRING_DISTRIBUTION_DATE) .*$/\1 \"$DIST\"/g' Marlin/Version.h" && \
|
|
33
|
+ git config user.name "${GITHUB_ACTOR}" && \
|
|
34
|
+ git config user.email "${GITHUB_ACTOR}@users.noreply.github.com" && \
|
|
35
|
+ git add . && \
|
|
36
|
+ git commit -m "[cron] Bump distribution date ($DIST)" && \
|
|
37
|
+ git push
|
|
38
|
+ fi
|
|
39
|
+ exit 0
|
|
40
|
+
|
|
41
|
+ - name: Check out bugfix-2.1.x
|
|
42
|
+ uses: actions/checkout@v2
|
|
43
|
+ with:
|
|
44
|
+ ref: bugfix-2.1.x
|
|
45
|
+
|
|
46
|
+ - name: Bump Date (bugfix-2.1.x)
|
27
|
47
|
run: |
|
28
|
48
|
# Inline Bump Script
|
29
|
49
|
if [[ ! "$( git log -1 --pretty=%B )" =~ ^\[cron\] ]]; then
|