Use a separate action to calculate hashes
Some checks failed
build (1)
build (2)
build (3)
build (4)
build (5)

`hashFiles` is broken in `act`, see https://gitea.com/gitea/act_runner/issues/40
This commit is contained in:
Jake Howard 2023-04-10 14:07:32 +01:00
parent 92c91c0565
commit 9be0408085

View File

@ -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