Giter VIP home page Giter VIP logo

setup-algolia-cli's People

Contributors

anantakrishna avatar clemfromspace avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

setup-algolia-cli's Issues

Can't not setup algolia cli in Github action step.

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.

Latest is not the latest actually

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).

inputs:
version:
description: Version of Algolia CLI to install
required: false
default: 1.2.0

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.

Setting ALGOLIA_APPLICATION_ID doesn't seem to work

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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.