mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-07-07 11:12:14 +00:00
fix secret for indexer workflow
This commit is contained in:
parent
409bd29abd
commit
5855bbb378
8
.github/workflows/rebuild-search-index.yml
vendored
8
.github/workflows/rebuild-search-index.yml
vendored
@ -6,6 +6,8 @@ jobs:
|
|||||||
build:
|
build:
|
||||||
if: github.repository_owner == 'spring-projects'
|
if: github.repository_owner == 'spring-projects'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
env:
|
||||||
|
CONFIG_FILE: .github/actions/docsearch-config.json
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
@ -13,16 +15,12 @@ jobs:
|
|||||||
fetch-depth: 5
|
fetch-depth: 5
|
||||||
- name: Configure Indexer
|
- name: Configure Indexer
|
||||||
run: |
|
run: |
|
||||||
CONFIG_FILE=.github/actions/docsearch-config.json
|
|
||||||
if [ ! -f $CONFIG_FILE ]; then
|
|
||||||
curl -sL -o $CONFIG_FILE $(node -p "require('fs').readFileSync('antora-playbook.yml', 'utf8').match(/^ url: (.*)/m)[1]")/docsearch-config.json
|
curl -sL -o $CONFIG_FILE $(node -p "require('fs').readFileSync('antora-playbook.yml', 'utf8').match(/^ url: (.*)/m)[1]")/docsearch-config.json
|
||||||
fi
|
|
||||||
INDEX_NAME=$(node -p "JSON.parse(require('fs').readFileSync('$CONFIG_FILE')).index_name")
|
INDEX_NAME=$(node -p "JSON.parse(require('fs').readFileSync('$CONFIG_FILE')).index_name")
|
||||||
echo "CONFIG_FILE=${CONFIG_FILE}" >> $GITHUB_ENV
|
|
||||||
echo "INDEX_NAME_TMP=${INDEX_NAME}-${GITHUB_RUN_ID}" >> $GITHUB_ENV
|
echo "INDEX_NAME_TMP=${INDEX_NAME}-${GITHUB_RUN_ID}" >> $GITHUB_ENV
|
||||||
- name: Run Indexer
|
- name: Run Indexer
|
||||||
uses: darrenjennings/algolia-docsearch-action@master
|
uses: darrenjennings/algolia-docsearch-action@master
|
||||||
with:
|
with:
|
||||||
algolia_application_id: ${{ secrets.ALGOLIA_APP_ID }}
|
algolia_application_id: ${{ secrets.ALGOLIA_APPLICATION_ID }}
|
||||||
algolia_api_key: ${{ secrets.ALGOLIA_API_KEY }}
|
algolia_api_key: ${{ secrets.ALGOLIA_API_KEY }}
|
||||||
file: ${{ env.CONFIG_FILE }}
|
file: ${{ env.CONFIG_FILE }}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user