I am running the following code in github actions
- name: Verify Workflow integrity
run: |
echo "some text" > test/apps/test/test.yml
cat test/apps/test/test.yml
echo "${{ hashFiles('test/apps/test/*.yml') }}"
echo "alter text" > test/apps/test/test.yml
cat test/apps/test/test.yml
echo "${{ hashFiles('test/apps/test/*.yml') }}"
It produces the following output
| some text
| e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
| alter text
| e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
Since the text in the file has changed, I am expecting a different hash. However, it produces the same hash. Am I missing something?
basically, I want to find the hash of all the files in test/apps/test directory