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 835B

12345678910111213141516171819202122232425262728293031323334
  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 0 * * *'
  9. jobs:
  10. bump_date:
  11. runs-on: ubuntu-latest
  12. steps:
  13. - name: Check out bugfix-2.0.x
  14. uses: actions/checkout@v2
  15. with:
  16. ref: bugfix-2.0.x
  17. - name: Bump Distribution Date
  18. run: |
  19. # Inline Bump Script
  20. [[ "$GITHUB_REPOSITORY" == "MarlinFirmware/Marlin" ]] || exit 0
  21. DIST=$( date +"%Y-%m-%d" )
  22. eval "sed -E -i 's/(#define +STRING_DISTRIBUTION_DATE) .*$/\1 \"$DIST\"/g' Marlin/src/inc/Version.h" && \
  23. git config user.name "${GITHUB_ACTOR}" && \
  24. git config user.email "${GITHUB_ACTOR}@users.noreply.github.com" && \
  25. git add . && \
  26. git commit -m "[cron] Bump distribution date ($DIST)" && \
  27. git push