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
|
EOF
|
||||||
shell: bash
|
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
|
- name: Cache binaries
|
||||||
if: ${{ inputs.cache == true || inputs.cache == 'true' }}
|
if: ${{ inputs.cache == true || inputs.cache == 'true' }}
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v4
|
||||||
|
@ -47,7 +53,7 @@ runs:
|
||||||
path: |
|
path: |
|
||||||
~/.rokit/bin
|
~/.rokit/bin
|
||||||
~/.rokit/tool-storage
|
~/.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
|
- name: Install tools
|
||||||
run: |
|
run: |
|
||||||
|
|
Loading…
Reference in a new issue