From ebaf419e9fc58adacadc7818524cd6b2a0696721 Mon Sep 17 00:00:00 2001 From: Sergey Shelomentsev Date: Wed, 27 Mar 2024 11:41:00 +0200 Subject: [PATCH] chore: update status reporter --- .github/workflows/functional.yml | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/.github/workflows/functional.yml b/.github/workflows/functional.yml index 5d98fa7..671db29 100644 --- a/.github/workflows/functional.yml +++ b/.github/workflows/functional.yml @@ -17,10 +17,10 @@ jobs: java: [ '8', '11', '17', '21' ] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: ref: ${{ github.event.pull_request.head.sha }} - - uses: actions/setup-java@v3 + - uses: actions/setup-java@v4 with: distribution: 'zulu' java-version: '${{ matrix.java }}' @@ -31,11 +31,14 @@ jobs: FPJS_API_REGION: "${{ secrets.FPJS_API_REGION }}" FPJS_VISITOR_ID: "${{ secrets.FPJS_VISITOR_ID }}" FPJS_REQUEST_ID: "${{ secrets.FPJS_REQUEST_ID }}" - - name: Report Status - if: always() - uses: ravsamhq/notify-slack-action@0d9c6ff1de9903da88d24c0564f6e83cb28faca9 - with: - status: ${{ job.status }} - notification_title: 'Java ${{ matrix.java }} SDK Functional Test has {status_message}' - env: - SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} + + + report_status: + needs: functional_tests + if: always() + uses: fingerprintjs/dx-team-toolkit/.github/workflows/report-workflow-status.yml@v1 + with: + notification_title: 'Node SDK Functional Tests has {status_message}' + job_status: ${{ needs.functional_tests.result }} + secrets: + SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}