Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 27 additions & 1 deletion .github/workflows/coveo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ jobs:
generate-coveo-search-token:
name: Generate Coveo Search Tokens
runs-on: ubuntu-latest
permissions:
contents: read
actions: read # for 8398a7/action-slack
strategy:
matrix:
include:
Expand Down Expand Up @@ -69,8 +72,31 @@ jobs:
name: ${{matrix.env_name}}
path: "./"

- name: Send a notification if token generation step failed
if: ${{ steps.generate-token.outcome == 'failure' }}
uses: 8398a7/action-slack@77eaa4f1c608a7d68b38af4e3f739dcd8cba273e # v3.19.0
with:
status: custom
custom_payload: |
{
username: 'Github',
mention: 'channel',
attachments: [{
title: '[${{ github.event.repository.full_name }}] Coveo Token Generation Failed (${{matrix.env_name}} environment)',
color: 'danger',
fields: [{
title: 'Pipeline URL',
value: '<https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}|${{ github.run_id }}>',
short: false
}]
}]
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL_DOCS_INCIDENT }}


push-tokens-to-azure:
name: Push coveo search tokens to Azure
name: Batch push coveo search tokens to Azure
runs-on: ubuntu-latest
needs: generate-coveo-search-token
steps:
Expand Down