algolia / setup-algolia-cli Goto Github PK
View Code? Open in Web Editor NEWAn action to install the Algolia CLI on GitHub's hosted runners
Home Page: https://www.algolia.com/doc/tools/cli/get-started/overview/
License: MIT License
An action to install the Algolia CLI on GitHub's hosted runners
Home Page: https://www.algolia.com/doc/tools/cli/get-started/overview/
License: MIT License
Hi guys:
I were following the README
content and add algolia cli step in my Github action, but so sad that not working as well, then throws and exception out like this:
Run algolia/[email protected]
with:
version: latest
env:
ALGOLIA_APPLICATION_ID: ***
ALGOLIA_ADMIN_API_KEY: ***
Object prototype may only be an Object or null: undefined
Waiting 1[2](https://github.com/elkan1788/myblog-sources/actions/runs/3180191868/jobs/5183480429#step:7:2) seconds before trying again
Object prototype may only be an Object or null: undefined
Waiting 1[4](https://github.com/elkan1788/myblog-sources/actions/runs/3180191868/jobs/5183480429#step:7:4) seconds before trying again
Error: TypeError: Object prototype may only be an Object or null: undefined
How fix this issue, thanks.
In the README it is said that the default value for the version
input is latest
, though it's not the case anymore after ecd8ce3 (a fix for #1).
Lines 6 to 10 in ecd8ce3
Ideally, the proper implementation for latest
is awaited. Though it may be not so straightforward as described in the docs because the file name is not static.
Anyhow, having outdated 1.2.0
as a hard-coded default version doesn't make much sense because the CLI evolves constantly. Currently it's 1.4.2. You'd have to create a new version of this action every time a new version of CLI comes out.
Or at least a correction of the README is necessary to avoid confusion. I'd suggest removing the default altogether in this case.
I've got my job step configured like this:
- uses: algolia/setup-algolia-cli@master
env:
ALGOLIA_APPLICATION_ID: ${{ secrets.ALGOLIA_APP_ID }}
ALGOLIA_ADMIN_API_KEY: ${{ secrets.ALGOLIA_ADMIN_API_KEY }}
- run: algolia indices clear ${{ vars.ALGOLIA_DEV_INDEX }}
- run: algolia objects import ${{ vars.ALGOLIA_DEV_INDEX }} -F dist/docs/search.json --auto-generate-object-id-if-not-exist
Despite setting the ALGOLIA_APPLICATION_ID
and the ALGOLIA_ADMIN_API_KEY
, it fails with this error:
Run algolia indices clear dev_fire_docs
algolia indices clear dev_fire_docs
shell: /usr/bin/bash -e {0}
Authentication error: you have not configured your Application ID yet
Please run `algolia profile add` to configure your first profile.
Error: Process completed with exit code [4](https://github.com/firehydrant/fh-docs/actions/runs/4258172538/jobs/7409119162#step:7:5).
It seems odd that I'd still need to configure a profile after specifying both the app ID and the API key. Either that isn't working, or the instructions need to be updated.
Is there something obvious I'm not doing correctly?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.