Use a separate action to calculate hashes
build (1) Details
build (2) Details
build (3) Details
build (4) Details
build (5) Details

`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
1 changed files with 6 additions and 1 deletions

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