2020-02-03 20:31:41 -05:00
|
|
|
#
|
|
|
|
# bump-date.yml
|
|
|
|
# Bump the distribution date once per day
|
|
|
|
#
|
|
|
|
|
|
|
|
name: Bump Distribution Date
|
|
|
|
|
|
|
|
on:
|
|
|
|
schedule:
|
|
|
|
- cron: '0 0 * * *'
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
bump_date:
|
2020-07-05 16:23:07 -04:00
|
|
|
name: Bump Distribution Date
|
|
|
|
if: github.repository == 'MarlinFirmware/Marlin'
|
2020-02-03 20:31:41 -05:00
|
|
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
|
|
|
|
- name: Check out bugfix-2.0.x
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
with:
|
|
|
|
ref: bugfix-2.0.x
|
|
|
|
|
|
|
|
- name: Bump Distribution Date
|
|
|
|
run: |
|
|
|
|
# Inline Bump Script
|
|
|
|
DIST=$( date +"%Y-%m-%d" )
|
|
|
|
eval "sed -E -i 's/(#define +STRING_DISTRIBUTION_DATE) .*$/\1 \"$DIST\"/g' Marlin/src/inc/Version.h" && \
|
|
|
|
git config user.name "${GITHUB_ACTOR}" && \
|
|
|
|
git config user.email "${GITHUB_ACTOR}@users.noreply.github.com" && \
|
|
|
|
git add . && \
|
|
|
|
git commit -m "[cron] Bump distribution date ($DIST)" && \
|
|
|
|
git push
|