fix workflow

This commit is contained in:
Artur Akmalov
2023-07-26 15:38:19 +05:00
parent a54cf6c9bc
commit 37afac460b
2 changed files with 17 additions and 2 deletions

View File

@@ -34,3 +34,18 @@ jobs:
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./build
algolia:
needs: deploy
name: Algolia update index for search
runs-on: ubuntu-latest
env:
APPLICATION_ID: ${{ secrets.ALGOLIA_APP_ID }}
API_KEY: ${{ secrets.ALGOLIA_API_KEY }}
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Run Docker scraper
run: |
docker run -e APPLICATION_ID=$APPLICATION_ID -e API_KEY=$API_KEY -e "CONFIG=$(cat algolia_config.json | jq -r tostring)" algolia/docsearch-scraper

View File

@@ -1,10 +1,10 @@
name: Algolia update index
name: Manual action for testing
on:
workflow_dispatch:
jobs:
job_algolia:
test_algolia:
name: Algolia updates
runs-on: ubuntu-latest
env: