From bbc3837971fbeaa06b9a937e5346b79d2d086f88 Mon Sep 17 00:00:00 2001 From: Anton Baliasnikov Date: Tue, 24 Sep 2024 16:06:26 +0100 Subject: [PATCH] ci: fix slack notifications job url --- .github/actions/integration-tests/action.yml | 13 ------------- .github/workflows/integration-tests.yaml | 11 ++++++++++- 2 files changed, 10 insertions(+), 14 deletions(-) diff --git a/.github/actions/integration-tests/action.yml b/.github/actions/integration-tests/action.yml index e631718..7ff0ea1 100644 --- a/.github/actions/integration-tests/action.yml +++ b/.github/actions/integration-tests/action.yml @@ -22,9 +22,6 @@ inputs: required: false default: 'eravm' description: 'Target machine passed via `--target` for era-compiler-tester. Available arguments: `eravm`, `evm`.' - slack_webhook_url: - required: true - description: 'Slack webhook URL for notifications.' runs: using: "composite" @@ -113,13 +110,3 @@ runs: ./target/release/compiler-tester ${TARGET} ${TOOLCHAIN} ${PATH_FILTER} \ --zksolc './target-zksolc/release/zksolc' \ --zkvyper './target-zkvyper/release/zkvyper' ${{ inputs.extra-args }} - - - name: Send Slack notification - uses: 8398a7/action-slack@v3 - if: (failure() || success()) && (github.event_name == 'pull_request' && !github.event.pull_request.head.repo.fork) - with: - job_name: Integration Tests ${{ inputs.target-machine || 'default' }} - status: ${{ job.status }} - fields: repo,commit,author,action,eventName,ref,workflow,job,took,pullRequest - env: - SLACK_WEBHOOK_URL: ${{ inputs.slack_webhook_url }} diff --git a/.github/workflows/integration-tests.yaml b/.github/workflows/integration-tests.yaml index facc9ac..db9488f 100644 --- a/.github/workflows/integration-tests.yaml +++ b/.github/workflows/integration-tests.yaml @@ -114,4 +114,13 @@ jobs: custom-solc-run-id: ${{ inputs.custom-solc-run-id }} custom-solc-version: ${{ inputs.custom-solc-version }} target-machine: ${{ inputs.target-machine }} - slack_webhook_url: ${{ secrets.SLACK_WEBHOOK }} + + - name: Send Slack notification + uses: 8398a7/action-slack@v3 + if: (failure() || success()) && (github.event_name == 'pull_request' && !github.event.pull_request.head.repo.fork) + with: + job_name: ${{ inputs.target-machine }} ${{ matrix.name }} + status: ${{ job.status }} + fields: repo,commit,author,action,eventName,ref,workflow,job,took,pullRequest + env: + SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK }}