From fea487870c47c3469bc5c2637c53c670c8e03796 Mon Sep 17 00:00:00 2001 From: kenorb Date: Mon, 22 Apr 2024 00:02:07 +0100 Subject: [PATCH] GHA: Adds hashFiles() to cache key --- .github/workflows/platform-linux.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/platform-linux.yml b/.github/workflows/platform-linux.yml index 8da349c4..a80d21ad 100644 --- a/.github/workflows/platform-linux.yml +++ b/.github/workflows/platform-linux.yml @@ -68,8 +68,10 @@ jobs: if: env.CACHE uses: actions/cache@v4 with: - path: ~/.wine/drive_c - key: ${{ env.ARTIFACT_NAME }}/${{ env.CHECKOUT_REF }}/${{ env.VERSION }} + path: | + /etc/ansible/facts.d + ~/.wine/drive_c + key: ${{ env.ARTIFACT_NAME }}/${{ env.CHECKOUT_REF }}/${{ env.VERSION }}/${{ hashFiles('/etc/ansible/facts.d') }} - if: steps.cache-mt.outputs.cache-hit != 'true' name: Runs playbook uses: dawidd6/action-ansible-playbook@v2