mirror of
https://github.com/deepset-ai/haystack.git
synced 2025-11-11 23:54:37 +00:00
Try to send event to Datadog only if possible (#5795)
This commit is contained in:
parent
4ae0924ea0
commit
c23cac3215
19
.github/workflows/license_compliance.yml
vendored
19
.github/workflows/license_compliance.yml
vendored
@ -9,6 +9,9 @@ on:
|
|||||||
schedule:
|
schedule:
|
||||||
- cron: "0 0 * * *" # every day at midnight
|
- cron: "0 0 * * *" # every day at midnight
|
||||||
|
|
||||||
|
env:
|
||||||
|
CORE_DATADOG_API_KEY: ${{ secrets.CORE_DATADOG_API_KEY }}
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
license_check_direct:
|
license_check_direct:
|
||||||
name: Direct dependencies only
|
name: Direct dependencies only
|
||||||
@ -71,10 +74,10 @@ jobs:
|
|||||||
# secrets are not accessible.
|
# secrets are not accessible.
|
||||||
# To prevent showing bogus failures in those PRs we skip the step.
|
# To prevent showing bogus failures in those PRs we skip the step.
|
||||||
# The workflow will fail in any case if the actual check fails in the previous steps.
|
# The workflow will fail in any case if the actual check fails in the previous steps.
|
||||||
if: (success() || failure()) && github.repository == 'deepset-ai/haystack'
|
if: (success() || failure()) && env.CORE_DATADOG_API_KEY != ''
|
||||||
uses: masci/datadog@v1
|
uses: masci/datadog@v1
|
||||||
with:
|
with:
|
||||||
api-key: ${{ secrets.CORE_DATADOG_API_KEY }}
|
api-key: ${{ env.CORE_DATADOG_API_KEY }}
|
||||||
api-url: https://api.datadoghq.eu
|
api-url: https://api.datadoghq.eu
|
||||||
events: |
|
events: |
|
||||||
- title: "${{ github.job }} in ${{ github.workflow }} workflow"
|
- title: "${{ github.job }} in ${{ github.workflow }} workflow"
|
||||||
@ -145,10 +148,10 @@ jobs:
|
|||||||
# secrets are not accessible.
|
# secrets are not accessible.
|
||||||
# To prevent showing bogus failures in those PRs we skip the step.
|
# To prevent showing bogus failures in those PRs we skip the step.
|
||||||
# The workflow will fail in any case if the actual check fails in the previous steps.
|
# The workflow will fail in any case if the actual check fails in the previous steps.
|
||||||
if: (success() || failure()) && github.repository == 'deepset-ai/haystack'
|
if: (success() || failure()) && env.CORE_DATADOG_API_KEY != ''
|
||||||
uses: masci/datadog@v1
|
uses: masci/datadog@v1
|
||||||
with:
|
with:
|
||||||
api-key: ${{ secrets.CORE_DATADOG_API_KEY }}
|
api-key: ${{ env.CORE_DATADOG_API_KEY }}
|
||||||
api-url: https://api.datadoghq.eu
|
api-url: https://api.datadoghq.eu
|
||||||
events: |
|
events: |
|
||||||
- title: "${{ github.job }} in ${{ github.workflow }} workflow"
|
- title: "${{ github.job }} in ${{ github.workflow }} workflow"
|
||||||
@ -218,10 +221,10 @@ jobs:
|
|||||||
# secrets are not accessible.
|
# secrets are not accessible.
|
||||||
# To prevent showing bogus failures in those PRs we skip the step.
|
# To prevent showing bogus failures in those PRs we skip the step.
|
||||||
# The workflow will fail in any case if the actual check fails in the previous steps.
|
# The workflow will fail in any case if the actual check fails in the previous steps.
|
||||||
if: (success() || failure()) && github.repository == 'deepset-ai/haystack'
|
if: (success() || failure()) && env.CORE_DATADOG_API_KEY != ''
|
||||||
uses: masci/datadog@v1
|
uses: masci/datadog@v1
|
||||||
with:
|
with:
|
||||||
api-key: ${{ secrets.CORE_DATADOG_API_KEY }}
|
api-key: ${{ env.CORE_DATADOG_API_KEY }}
|
||||||
api-url: https://api.datadoghq.eu
|
api-url: https://api.datadoghq.eu
|
||||||
events: |
|
events: |
|
||||||
- title: "${{ github.job }} in ${{ github.workflow }} workflow"
|
- title: "${{ github.job }} in ${{ github.workflow }} workflow"
|
||||||
@ -291,10 +294,10 @@ jobs:
|
|||||||
# secrets are not accessible.
|
# secrets are not accessible.
|
||||||
# To prevent showing bogus failures in those PRs we skip the step.
|
# To prevent showing bogus failures in those PRs we skip the step.
|
||||||
# The workflow will fail in any case if the actual check fails in the previous steps.
|
# The workflow will fail in any case if the actual check fails in the previous steps.
|
||||||
if: (success() || failure()) && github.repository == 'deepset-ai/haystack'
|
if: (success() || failure()) && env.CORE_DATADOG_API_KEY != ''
|
||||||
uses: masci/datadog@v1
|
uses: masci/datadog@v1
|
||||||
with:
|
with:
|
||||||
api-key: ${{ secrets.CORE_DATADOG_API_KEY }}
|
api-key: ${{ env.CORE_DATADOG_API_KEY }}
|
||||||
api-url: https://api.datadoghq.eu
|
api-url: https://api.datadoghq.eu
|
||||||
events: |
|
events: |
|
||||||
- title: "${{ github.job }} in ${{ github.workflow }} workflow"
|
- title: "${{ github.job }} in ${{ github.workflow }} workflow"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user