Skip to content

Commit

Permalink
fix: key
Browse files Browse the repository at this point in the history
  • Loading branch information
shortcuts committed Jan 17, 2022
1 parent debb932 commit 989f514
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions .github/actions/cache/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,49 +16,49 @@ runs:
uses: actions/cache@v2
with:
path: /home/runner/work/api-clients-automation/api-clients-automation/specs/dist/abtesting.yml
key: ${{ runner.os }}-abtesting-spec-${{ hashFiles('specs/dist/abtesting.yml') }}
key: ${{ runner.os }}-abtesting-spec-${{ hashFiles('specs/abtesting/**') }}

- name: Restore built analytics spec
if: ${{ inputs.job == 'client' || inputs.job == 'java' }}
uses: actions/cache@v2
with:
path: /home/runner/work/api-clients-automation/api-clients-automation/specs/dist/analytics.yml
key: ${{ runner.os }}-analytics-spec-${{ hashFiles('specs/dist/analytics.yml') }}
key: ${{ runner.os }}-analytics-spec-${{ hashFiles('specs/analytics/**') }}

- name: Restore built insights spec
if: ${{ inputs.job == 'client' || inputs.job == 'java' }}
uses: actions/cache@v2
with:
path: /home/runner/work/api-clients-automation/api-clients-automation/specs/dist/insights.yml
key: ${{ runner.os }}-insights-spec-${{ hashFiles('specs/dist/insights.yml') }}
key: ${{ runner.os }}-insights-spec-${{ hashFiles('specs/insights/**') }}

- name: Restore built personalization spec
if: ${{ inputs.job == 'client' || inputs.job == 'java' }}
uses: actions/cache@v2
with:
path: /home/runner/work/api-clients-automation/api-clients-automation/specs/dist/personalization.yml
key: ${{ runner.os }}-personalization-spec-${{ hashFiles('specs/dist/personalization.yml') }}
key: ${{ runner.os }}-personalization-spec-${{ hashFiles('specs/personalization/**'') }}

- name: Restore built query-suggestions spec
if: ${{ inputs.job == 'client' || inputs.job == 'java' }}
uses: actions/cache@v2
with:
path: /home/runner/work/api-clients-automation/api-clients-automation/specs/dist/query-suggestions.yml
key: ${{ runner.os }}-query-suggestions-spec-${{ hashFiles('specs/dist/query-suggestions.yml') }}
key: ${{ runner.os }}-query-suggestions-spec-${{ hashFiles('specs/query-suggestions/**') }}

- name: Restore built recommend spec
if: ${{ inputs.job == 'client' || inputs.job == 'java' }}
uses: actions/cache@v2
with:
path: /home/runner/work/api-clients-automation/api-clients-automation/specs/dist/recommend.yml
key: ${{ runner.os }}-recommend-spec-${{ hashFiles('specs/dist/recommend.yml') }}
key: ${{ runner.os }}-recommend-spec-${{ hashFiles('specs/recommend/**') }}

- name: Restore built search spec
if: ${{ inputs.job == 'client' || inputs.job == 'java' }}
uses: actions/cache@v2
with:
path: /home/runner/work/api-clients-automation/api-clients-automation/specs/dist/search.yml
key: ${{ runner.os }}-search-spec-${{ hashFiles('specs/dist/search.yml') }}
key: ${{ runner.os }}-search-spec-${{ hashFiles('specs/search/**') }}

# restore clients
- name: Restore built JavaScript search client
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ jobs:
uses: actions/cache@v2
with:
path: '/home/runner/work/api-clients-automation/api-clients-automation/specs/dist/${{ matrix.client }}.yml'
key: ${{ runner.os }}-${{ matrix.client }}-spec-${{ hashFiles('specs/dist/${{ matrix.client }}.yml') }}
key: ${{ runner.os }}-${{ matrix.client }}-spec-${{ hashFiles('specs/${{ matrix.client }}/**') }}

- name: Checking ${{ matrix.client }} specs
run: yarn build:specs ${{ matrix.client }}
Expand Down

0 comments on commit 989f514

Please sign in to comment.