Skip to content

Commit

Permalink
prevent overlapping paths
Browse files Browse the repository at this point in the history
  • Loading branch information
shortcuts committed Apr 4, 2022
1 parent daa1859 commit 87e0614
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .github/.cache_version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
7.0.1
7.0.2
32 changes: 23 additions & 9 deletions .github/actions/cache/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,9 @@ runs:
if: ${{ inputs.job == 'cts' || inputs.job == 'codegen' }}
uses: actions/cache@v2
with:
path: clients/algoliasearch-client-php
path: |
'clients/algoliasearch-client-php/lib/Api/SearchApi.php'
'clients/algoliasearch-client-php/lib/Configuration/SearchConfig.php'
key: |
${{ env.CACHE_VERSION }}-${{
hashFiles(
Expand All @@ -382,7 +384,9 @@ runs:
if: ${{ inputs.job == 'cts' || inputs.job == 'codegen' }}
uses: actions/cache@v2
with:
path: clients/algoliasearch-client-php
path: |
'clients/algoliasearch-client-php/lib/Api/RecommendApi.php'
'clients/algoliasearch-client-php/lib/Configuration/RecommendConfig.php'
key: |
${{ env.CACHE_VERSION }}-${{
hashFiles(
Expand All @@ -397,7 +401,9 @@ runs:
if: ${{ inputs.job == 'cts' || inputs.job == 'codegen' }}
uses: actions/cache@v2
with:
path: clients/algoliasearch-client-php
path: |
'clients/algoliasearch-client-php/lib/Api/PersonalizationApi.php'
'clients/algoliasearch-client-php/lib/Configuration/PersonalizationConfig.php'
key: |
${{ env.CACHE_VERSION }}-${{
hashFiles(
Expand All @@ -412,7 +418,9 @@ runs:
if: ${{ inputs.job == 'cts' || inputs.job == 'codegen' }}
uses: actions/cache@v2
with:
path: clients/algoliasearch-client-php
path: |
'clients/algoliasearch-client-php/lib/Api/AnalyticsApi.php'
'clients/algoliasearch-client-php/lib/Configuration/AnalyticsApi.php'
key: |
${{ env.CACHE_VERSION }}-${{
hashFiles(
Expand All @@ -427,7 +435,9 @@ runs:
if: ${{ inputs.job == 'cts' || inputs.job == 'codegen' }}
uses: actions/cache@v2
with:
path: clients/algoliasearch-client-php
path: |
'clients/algoliasearch-client-php/lib/Api/InsightsApi.php'
'clients/algoliasearch-client-php/lib/Configuration/InsightsConfig.php'
key: |
${{ env.CACHE_VERSION }}-${{
hashFiles(
Expand All @@ -442,12 +452,14 @@ runs:
if: ${{ inputs.job == 'cts' || inputs.job == 'codegen' }}
uses: actions/cache@v2
with:
path: clients/algoliasearch-client-php
path: |
'clients/algoliasearch-client-php/lib/Api/AbtestingApi.php'
'clients/algoliasearch-client-php/lib/Configuration/AbtestingConfig.php'
key: |
${{ env.CACHE_VERSION }}-${{
hashFiles(
'clients/algoliasearch-client-php/lib/Api/AbTestingApi.php',
'clients/algoliasearch-client-php/lib/Configuration/AbTestingConfig.php',
'clients/algoliasearch-client-php/lib/Api/AbtestingApi.php',
'clients/algoliasearch-client-php/lib/Configuration/AbtestingConfig.php',
'specs/bundled/abtesting.yml',
'templates/php/**',
'generators/src/**'
Expand All @@ -457,7 +469,9 @@ runs:
if: ${{ inputs.job == 'cts' || inputs.job == 'codegen' }}
uses: actions/cache@v2
with:
path: clients/algoliasearch-client-php
path: |
'clients/algoliasearch-client-php/lib/Api/QuerySuggestionsApi.php'
'clients/algoliasearch-client-php/lib/Configuration/QuerySuggestionsConfig.php'
key: |
${{ env.CACHE_VERSION }}-${{
hashFiles(
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,9 @@ jobs:
id: cache
uses: actions/cache@v2
with:
path: ${{ matrix.client.folder }}
path: |
format('{0}/lib/Api/{1}.php', matrix.client.folder, matrix.client.api)
format('{0}/lib/Configuration/{1}.php', matrix.client.folder, matrix.client.config)
key: |
${{ env.CACHE_VERSION }}-${{
hashFiles(
Expand Down
2 changes: 1 addition & 1 deletion openapitools.json
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@
"invokerPackage": "Algolia\\AlgoliaSearch",
"globalProperty": "apis,supportingFiles",
"additionalProperties": {
"configClassname": "AbTestingConfig",
"configClassname": "AbtestingConfig",
"hasRegionalHost": true,
"allowedRegions": "us-de",
"variableNamingConvention": "camelCase",
Expand Down

0 comments on commit 87e0614

Please sign in to comment.