Skip to content

Commit

Permalink
update: add Slack notification [no ci](#648)
Browse files Browse the repository at this point in the history
  • Loading branch information
ArthurFlag authored Jan 17, 2025
1 parent b3b0e0f commit b1dcabd
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/create-index-algolia.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,19 @@ jobs:
run: yarn install --immutable
- name: Build Docusaurus site
run: yarn build
- name: Index docs output
- name: Update global index
run: node scripts/create_index_algolia.cjs
env:
ALGOLIA_APP_ID: ${{ secrets.ALGOLIA_APP_ID }}
ALGOLIA_API_KEY: ${{ secrets.ALGOLIA_API_KEY }}
ALGOLIA_INDEX_NAME: ${{ secrets.ALGOLIA_INDEX_NAME }}
- name: Ping on Slack
uses: slackapi/[email protected]
if: ${{ failure() && github.ref_name == 'main' }}
with:
payload: |
{
"runId": "${{github.run_id}}"
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_ALGOLIA_INDEX_UPDATE }}

0 comments on commit b1dcabd

Please sign in to comment.