diff --git a/.github/actions/run-e2e-tests/action.yml b/.github/actions/run-e2e-tests/action.yml index 5fd06a09c1..3e665293fe 100644 --- a/.github/actions/run-e2e-tests/action.yml +++ b/.github/actions/run-e2e-tests/action.yml @@ -22,6 +22,10 @@ inputs: description: "Slack webhook URL for failure notifications" required: false default: "" + gh-user-to-slack-user: + description: "JSON mapping of GitHub usernames to Slack user IDs" + required: false + default: "{}" runs: using: composite @@ -40,5 +44,5 @@ runs: ref: ${{ inputs.app }}/v${{ inputs.app-version }} url: ${{ inputs.app-url }} slack-webhook-url: ${{ inputs.slack-webhook-url }} - gh-user-to-slack-user: ${{ vars.GH_USER_TO_SLACK_USER }} + gh-user-to-slack-user: ${{ inputs.gh-user-to-slack-user }} message-title: "Console ${{ inputs.app }} E2E tests failed on ${{ inputs.environment == 'prod' && 'production' || inputs.environment }} ${{ inputs.chain }}" diff --git a/.github/workflows/console-api-release.yml b/.github/workflows/console-api-release.yml index a95361707a..18216109fd 100644 --- a/.github/workflows/console-api-release.yml +++ b/.github/workflows/console-api-release.yml @@ -79,6 +79,7 @@ jobs: environment: staging chain: sandbox slack-webhook-url: ${{ secrets.FAILED_E2E_TESTS_SLACK_WEBHOOK_URL }} + gh-user-to-slack-user: ${{ vars.GH_USER_TO_SLACK_USER }} deploy-prod-mainnet: permissions: diff --git a/.github/workflows/provider-proxy-release.yml b/.github/workflows/provider-proxy-release.yml index 2c2a7d3dfd..fe9343fcfc 100644 --- a/.github/workflows/provider-proxy-release.yml +++ b/.github/workflows/provider-proxy-release.yml @@ -79,6 +79,7 @@ jobs: environment: staging chain: sandbox slack-webhook-url: ${{ secrets.FAILED_E2E_TESTS_SLACK_WEBHOOK_URL }} + gh-user-to-slack-user: ${{ vars.GH_USER_TO_SLACK_USER }} test-beta-mainnet: permissions: @@ -102,6 +103,7 @@ jobs: environment: staging chain: mainnet slack-webhook-url: ${{ secrets.FAILED_E2E_TESTS_SLACK_WEBHOOK_URL }} + gh-user-to-slack-user: ${{ vars.GH_USER_TO_SLACK_USER }} deploy-prod-mainnet: permissions: @@ -159,3 +161,4 @@ jobs: environment: prod chain: sandbox slack-webhook-url: ${{ secrets.FAILED_E2E_TESTS_SLACK_WEBHOOK_URL }} + gh-user-to-slack-user: ${{ vars.GH_USER_TO_SLACK_USER }}