mirror of
https://github.com/CompeyDev/setup-rokit.git
synced 2024-12-12 12:40:36 +00:00
fix: attempt to fix cache key not computing
This commit is contained in:
parent
88ba1eff83
commit
eb7b75bf67
1 changed files with 4 additions and 3 deletions
|
@ -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: |
|
||||||
|
|
Loading…
Reference in a new issue