From 80354c99b5d9958c4aee11cee84b62a06ab298ed Mon Sep 17 00:00:00 2001 From: Shish Date: Fri, 20 Mar 2020 16:59:11 +0000 Subject: [PATCH] cached docker builds, scheduled clean --- .github/workflows/test_and_publish.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test_and_publish.yml b/.github/workflows/test_and_publish.yml index d5c5f8c7..fe42b875 100644 --- a/.github/workflows/test_and_publish.yml +++ b/.github/workflows/test_and_publish.yml @@ -1,6 +1,10 @@ name: Test & Publish -on: [push, pull_request] +on: + push: + pull_request: + schedule: + - cron: '0 2 * * 0' # Weekly on Sundays at 02:00 jobs: test: @@ -87,3 +91,4 @@ jobs: name: shish2k/shimmie2 username: ${{ secrets.DOCKER_USERNAME }} password: ${{ secrets.DOCKER_PASSWORD }} + cache: ${{ github.event_name != 'schedule' }}