From 59e67d0106189728ade2bbe883c920f6f1db4b6f Mon Sep 17 00:00:00 2001 From: Lee Date: Sun, 15 Oct 2023 01:59:57 +0000 Subject: [PATCH] add renovate cache --- .gitea/workflows/renovate.yml | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/renovate.yml b/.gitea/workflows/renovate.yml index cf0f4aa..9d82c67 100644 --- a/.gitea/workflows/renovate.yml +++ b/.gitea/workflows/renovate.yml @@ -13,7 +13,15 @@ jobs: container: ghcr.io/renovatebot/renovate:37.19.2 steps: - uses: actions/checkout@v4 - - run: renovate + + - name: Restore Renovate Cache + id: cache-renovate + uses: actions/cache/restore@v3 + with: + path: /tmp/renovate/cache + key: ${{ runner.os }}-renovate-cache + + - run: Renovate env: #RENOVATE_CONFIG_FILE: "/home/container/rconfig.js" LOG_LEVEL: "debug" @@ -21,4 +29,11 @@ jobs: RENOVATE_TOKEN: ${{ secrets.RENOVATE_TOKEN }} GITHUB_COM_TOKEN: ${{ secrets.GH_TOKEN }} HUB_DOCKER_COM_USER: ${{ secrets.HUB_DOCKER_COM_USER }} - HUB_DOCKER_COM_TOKEN: ${{ secrets.HUB_DOCKER_COM_TOKEN }} \ No newline at end of file + HUB_DOCKER_COM_TOKEN: ${{ secrets.HUB_DOCKER_COM_TOKEN }} + + - name: Save Renovate Cache + id: cache-renovate + uses: actions/cache/save@v3 + with: + path: /tmp/renovate/cache + key: ${{ steps.cache-renovate.outputs.cache-primary-key }} \ No newline at end of file