diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index a244dd27..1cb809ac 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -118,8 +118,7 @@ jobs: ./framework/build/periodic-slack-report.sh - uses: slackapi/slack-github-action@v2.0.0 - env: - SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK - SLACK_WEBHOOK_URL: ${{ secrets.E2E_SLACK_WEBHOOK }} with: + webhook: ${{ secrets.E2E_SLACK_WEBHOOK }} + webhook-type: incoming-webhook payload-file-path: artifacts/slack-payload.json diff --git a/.github/workflows/repo-config.yml b/.github/workflows/repo-config.yml index c1e6b688..6c51d0e4 100644 --- a/.github/workflows/repo-config.yml +++ b/.github/workflows/repo-config.yml @@ -164,12 +164,12 @@ jobs: - name: Send result to Slack uses: slackapi/slack-github-action@v2.0.0 env: - SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK - SLACK_WEBHOOK_URL: ${{ secrets.CODE_HEALTH_SLACK_WEBHOOK }} OCM_RESULT: ${{ contains(needs.clusteradm.result, 'failure') && 'no_entry' || contains(needs.cluster.result, 'cancelled') && 'warning' || 'white_check_mark' }} with: + webhook: ${{ secrets.CODE_HEALTH_SLACK_WEBHOOK }} + webhook-type: incoming-webhook payload: | { "blocks": [