From b778cd230aa6fd5c589156729d498d99d0b9d1c9 Mon Sep 17 00:00:00 2001 From: Jared Allard Date: Sun, 9 Mar 2025 17:03:17 -0700 Subject: [PATCH] ci: consider all go.sum files for mod cache --- .github/workflows/test.yaml | 2 +- .github/workflows/update.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 751030d..b2d8591 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -33,7 +33,7 @@ jobs: - uses: https://code.forgejo.org/actions/cache@v4 with: path: ${{ steps.go.outputs.mod_cache_dir }} - key: ${{ runner.os }}-go-mod-cache-${{ hashFiles('go.sum') }} + key: ${{ runner.os }}-go-mod-cache-${{ hashFiles('**/go.sum') }} - name: Setup Environment working-directory: .tools run: mise run build diff --git a/.github/workflows/update.yaml b/.github/workflows/update.yaml index 33621d9..7b7ee30 100644 --- a/.github/workflows/update.yaml +++ b/.github/workflows/update.yaml @@ -33,7 +33,7 @@ jobs: - uses: https://code.forgejo.org/actions/cache@v4 with: path: ${{ steps.go.outputs.mod_cache_dir }} - key: ${{ runner.os }}-go-mod-cache-${{ hashFiles('go.sum') }} + key: ${{ runner.os }}-go-mod-cache-${{ hashFiles('**/go.sum') }} - name: Setup Environment working-directory: .tools run: mise run build