From 9be0408085c5acf388878edc07de27c1948dc2ea Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Mon, 10 Apr 2023 14:07:32 +0100 Subject: [PATCH] Use a separate action to calculate hashes `hashFiles` is broken in `act`, see https://gitea.com/gitea/act_runner/issues/40 --- .gitea/workflows/ci.yaml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml index 9582365..421a8a8 100644 --- a/.gitea/workflows/ci.yaml +++ b/.gitea/workflows/ci.yaml @@ -10,11 +10,16 @@ jobs: things: [1, 2, 3, 4, 5] steps: - uses: "https://github.com/actions/checkout@v3" + - name: Hash the files + uses: theowenyoung/folder-hash@v3 + id: hash-stuff + with: + path: .gitea/workflows/ci.yaml - name: Cache stuff uses: "https://github.com/actions/cache@v3" with: path: . - key: stuff-${{ hashFiles('.gitea/workflows/ci.yaml') }} + key: stuff-${{ steps.hash-stuff.outputs.hash }} - run: sleep 5 - name: Hello world run: docker run hello-world