My Marlin configs for Fabrikator Mini and CTC i3 Pro B
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

bump-date.yml 1.0KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. #
  2. # bump-date.yml
  3. # Bump the distribution date once per day
  4. #
  5. name: Bump Distribution Date
  6. on:
  7. schedule:
  8. - cron: '0 */6 * * *'
  9. jobs:
  10. bump_date:
  11. name: Bump Distribution Date
  12. if: github.repository == 'MarlinFirmware/Marlin'
  13. runs-on: ubuntu-latest
  14. steps:
  15. - name: Check out bugfix-2.1.x
  16. uses: actions/checkout@v2
  17. with:
  18. ref: bugfix-2.1.x
  19. - name: Bump Distribution Date
  20. run: |
  21. # Inline Bump Script
  22. if [[ ! "$( git log -1 --pretty=%B )" =~ ^\[cron\] ]]; then
  23. DIST=$( date +"%Y-%m-%d" )
  24. eval "sed -E -i 's/(#define +STRING_DISTRIBUTION_DATE) .*$/\1 \"$DIST\"/g' Marlin/src/inc/Version.h" && \
  25. eval "sed -E -i 's/(#define +STRING_DISTRIBUTION_DATE) .*$/\1 \"$DIST\"/g' Marlin/Version.h" && \
  26. git config user.name "${GITHUB_ACTOR}" && \
  27. git config user.email "${GITHUB_ACTOR}@users.noreply.github.com" && \
  28. git add . && \
  29. git commit -m "[cron] Bump distribution date ($DIST)" && \
  30. git push
  31. fi
  32. exit 0