MINOR: fix e2e python job (#18473)

* ci(py-cli-e2e): remove job id from link

remove job id from link. it doesn't work for matrix

* fix the condition for env.DEBUG
This commit is contained in:
Imri Paran 2024-10-31 17:14:35 +01:00 committed by GitHub
parent 7163f8e91a
commit 2539ffa8de
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -25,7 +25,7 @@ on:
default: "default"
env:
DEBUG: "${{ ((inputs.debug == 'default' && github.ref == 'refs/heads/main') && 'true') || (inputs.debug != 'default' && inputs.debug) || 'false' }}"
DEBUG: "${{ ((inputs.debug == 'default' && github.ref == 'refs/heads/main') && 'false') || (inputs.debug != 'default' && inputs.debug) || 'false' }}"
permissions:
id-token: write
@ -189,16 +189,13 @@ jobs:
docker compose down --remove-orphans
sudo rm -rf ${PWD}/docker-volume
- uses: austenstone/job-id@v1
id: job-id
- name: Slack on Failure
if: steps.e2e-test.outcome != 'success' && steps.python-e2e-test.outcome != 'success' && env.DEBUG == 'false'
uses: slackapi/slack-github-action@v1.23.0
with:
payload: |
{
"text": "🔥 Failed E2E Test for: ${{ matrix.e2e-test }} 🔥\nLogs: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}/job/${{ steps.job-id.outputs.job-id }}"
"text": "🔥 Failed E2E Test for: ${{ matrix.e2e-test }} 🔥\nLogs: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.E2E_SLACK_WEBHOOK }}