diff --git a/.github/workflows/e2e_cron.yml b/.github/workflows/e2e_cron.yml index d84b9844717..95b7e35ec7e 100644 --- a/.github/workflows/e2e_cron.yml +++ b/.github/workflows/e2e_cron.yml @@ -82,6 +82,8 @@ jobs: uses: slackapi/slack-github-action@v2.0.0 if: failure() && github.ref == 'refs/heads/main' with: + webhook: ${{ secrets.SLACK_GHA_FAILURES_WEBHOOK }} + webhook-type: webhook-trigger # For posting a message using Block Kit payload: | { @@ -124,6 +126,3 @@ jobs: } ] } - env: - SLACK_WEBHOOK_URL: ${{ secrets.SLACK_GHA_FAILURES_WEBHOOK }} - SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK