fix: attempt to fix cache key not computing

This commit is contained in:
Erica Marigold 2024-07-15 19:50:12 +05:30
parent 88ba1eff83
commit eb7b75bf67
No known key found for this signature in database
GPG key ID: 2768CC0C23D245D1

View file

@ -40,13 +40,14 @@ runs:
EOF EOF
shell: bash shell: bash
- name: Discover manifest file - name: Discover manifest file
id: manifest id: manifest
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 $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
shell: bash shell: bash
- name: Cache binaries - name: Cache binaries
@ -56,7 +57,7 @@ runs:
path: | path: |
~/.rokit/bin ~/.rokit/bin
~/.rokit/tool-storage ~/.rokit/tool-storage
key: ${{ runner.os }}-rokit-${{hashFiles(format('{0}/{1}', inputs.path, '${{ steps.manifest.outputs.path }}'))}} key: ${{ runner.os }}-rokit-${{ steps.manifest.outputs.hash }}
- name: Install tools - name: Install tools
run: | run: |