mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2026-01-07 04:56:54 +00:00
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:
parent
7163f8e91a
commit
2539ffa8de
7
.github/workflows/py-cli-e2e-tests.yml
vendored
7
.github/workflows/py-cli-e2e-tests.yml
vendored
@ -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 }}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user