fix: attempt to fix manifest hash computation

This commit is contained in:
Erica Marigold 2024-07-15 19:55:57 +05:30
parent 7dd03cbf10
commit cd22e8b9f5
No known key found for this signature in database
GPG key ID: 2768CC0C23D245D1

View file

@ -45,9 +45,11 @@ runs:
run: | run: |
manifest_path=$(find ${{ inputs.path }} -maxdepth 1 -name "rokit.toml" -o -name "aftman.toml" -o -name "foreman.toml") manifest_path=$(find ${{ inputs.path }} -maxdepth 1 -name "rokit.toml" -o -name "aftman.toml" -o -name "foreman.toml")
echo "::debug::Discovered manifest path: $manifest_path" echo "::debug::Discovered manifest path: $manifest_path"
echo "path=$manifest_path" >> $GITHUB_OUTPUT echo "path=$manifest_path" >> $GITHUB_OUTPUT
echo "hash=${{hashFiles(format('{0}/$manifest_path', inputs.path))}}" >> $GITHUB_OUTPUT
manifest_hash=${{hashFiles(manifest_path)}}
echo "::debug::Computed manifest hash: $manifest_hash"
echo "hash=$manifest_hash" >> $GITHUB_OUTPUT
shell: bash shell: bash
- name: Cache binaries - name: Cache binaries