From 5006b8f1502ad706894779768b2ac9d509eca3f5 Mon Sep 17 00:00:00 2001 From: penguin Date: Fri, 12 Dec 2025 18:42:37 -0600 Subject: [PATCH] infra: actions: cache git repo --- .gitea/workflows/gentoo-utils.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.gitea/workflows/gentoo-utils.yml b/.gitea/workflows/gentoo-utils.yml index 7b09db3..7eb53f9 100644 --- a/.gitea/workflows/gentoo-utils.yml +++ b/.gitea/workflows/gentoo-utils.yml @@ -7,11 +7,18 @@ jobs: runs-on: ubuntu-latest continue-on-error: true steps: + - name: Restore git cache + uses: actions/cache@v4 + with: + path: .git + key: gitea-repo-${{ gitea.repository }}-${{ gitea.ref }} + - name: Checkout repo uses: actions/checkout@v5 with: fetch-depth: 0 + - name: Check for changes before building id: image-changes # build image only if 1. changes are detected or 2. an image for the working branch doesnt exist