mirror of
https://github.com/CompeyDev/setup-rokit.git
synced 2024-12-12 04:30:37 +00:00
fix: proper manifest discovery logic for caching
This commit is contained in:
parent
5f353a0adc
commit
1b5ebd44d2
1 changed files with 7 additions and 1 deletions
|
@ -40,6 +40,12 @@ runs:
|
|||
EOF
|
||||
shell: bash
|
||||
|
||||
|
||||
- name: Discover manifest file
|
||||
id: manifest
|
||||
run: echo "path=$(find ${{ inputs.path }} -maxdepth 1 -name "rokit.toml" -o -name "aftman.toml" -o -name "foreman.toml")" >> $GITHUB_OUTPUT
|
||||
shell: bash
|
||||
|
||||
- name: Cache binaries
|
||||
if: ${{ inputs.cache == true || inputs.cache == 'true' }}
|
||||
uses: actions/cache@v4
|
||||
|
@ -47,7 +53,7 @@ runs:
|
|||
path: |
|
||||
~/.rokit/bin
|
||||
~/.rokit/tool-storage
|
||||
key: ${{ runner.os }}-rokit-${{hashFiles(format('{0}/{1}', inputs.path, '{aftman,foreman,rokit}.toml'))}}
|
||||
key: ${{ runner.os }}-rokit-${{hashFiles(format('{0}/{1}', inputs.path, '${{ steps.manifest.outputs.path }}'))}}
|
||||
|
||||
- name: Install tools
|
||||
run: |
|
||||
|
|
Loading…
Reference in a new issue