Skip to content

Commit

Permalink
chore: fix JavaScript algoliasearch artifacts (#561)
Browse files Browse the repository at this point in the history
  • Loading branch information
shortcuts authored May 25, 2022
1 parent a15cd2e commit ed83205
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 17 deletions.
16 changes: 8 additions & 8 deletions .github/actions/restore-artifacts/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,27 +53,27 @@ runs:
path: clients/algoliasearch-client-javascript/packages/requester-node-http/

# JavaScript
- name: Download client-javascript-algoliasearch artifact
- name: Download clients-javascript artifact
if: ${{ inputs.javascript == 'true' && inputs.type == 'all' }}
uses: actions/download-artifact@v3
with:
name: client-javascript-algoliasearch
name: clients-javascript

- name: Unzip client-javascript-algoliasearch artifact
- name: Unzip clients-javascript artifact
if: ${{ inputs.javascript == 'true' && inputs.type == 'all' }}
shell: bash
run: unzip -q -o client-javascript-algoliasearch.zip && rm client-javascript-algoliasearch.zip
run: unzip -q -o clients-javascript.zip && rm clients-javascript.zip

- name: Download clients-javascript artifact
- name: Download client-javascript-algoliasearch artifact
if: ${{ inputs.javascript == 'true' && inputs.type == 'all' }}
uses: actions/download-artifact@v3
with:
name: clients-javascript
name: client-javascript-algoliasearch

- name: Unzip clients-javascript artifact
- name: Unzip client-javascript-algoliasearch artifact
if: ${{ inputs.javascript == 'true' && inputs.type == 'all' }}
shell: bash
run: unzip -q -o clients-javascript.zip && rm clients-javascript.zip
run: unzip -q -o client-javascript-algoliasearch.zip && rm client-javascript-algoliasearch.zip

# PHP
- name: Download clients-php artifact
Expand Down
15 changes: 6 additions & 9 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -264,26 +264,23 @@ jobs:
)}}
path: clients/algoliasearch-client-javascript/packages/algoliasearch/

- name: Restore clients
- name: Download JavaScript clients artifact
if: ${{ steps.cache.outputs.cache-hit != 'true' }}
uses: actions/download-artifact@v3
with:
name: clients-javascript
path: clients/algoliasearch-client-javascript/

- name: Unzip JavaScript clients artifact
if: ${{ steps.cache.outputs.cache-hit != 'true' }}
shell: bash
run: unzip -q -o clients-javascript.zip && rm clients-javascript.zip

- name: Setup
if: ${{ steps.cache.outputs.cache-hit != 'true' }}
uses: ./.github/actions/setup
with:
type: minimal

- name: Download JavaScript clients
if: ${{ steps.cache.outputs.cache-hit != 'true' }}
uses: ./.github/actions/restore-artifacts
with:
javascript: true
type: all

- name: Build 'algoliasearch' client
if: ${{ steps.cache.outputs.cache-hit != 'true' }}
run: yarn cli build clients javascript algoliasearch
Expand Down

0 comments on commit ed83205

Please sign in to comment.