CI: Fixed the payload for TBD action (#35121)
## Description
Attached the attempt and changed the workflow name in order to trigger
slack workflow
> [!WARNING]
> _If no issue exists, please create an issue first, and check with the
maintainers if the issue is valid._
## Automation
/ok-to-test tags=""
### 🔍 Cypress test results
<!-- This is an auto-generated comment: Cypress test results -->
> [!CAUTION]
> If you modify the content in this section, you are likely to disrupt
the CI result for your PR.
<!-- end of auto-generated comment: Cypress test results -->
## Communication
Should the DevRel and Marketing teams inform users about this change?
- [ ] Yes
- [ ] No
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
- **New Features**
- Improved automation for analyzing Cypress test runs with refined
conditional logic.
- Enhanced data sent in analysis requests, including a new attempt
number field for better traceability.
- **Bug Fixes**
- Ensured the automated analysis workflow only triggers under specific
conditions, preventing unnecessary executions.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
Signed-off-by: Laveena Enid <laveena@appsmith.com>
This commit is contained in:
parent
7b5ad60069
commit
84cd0de775
|
|
@ -227,6 +227,7 @@ jobs:
|
||||||
|
|
||||||
# This step triggers an external workflow for automated analysis of Cypress test runs.
|
# This step triggers an external workflow for automated analysis of Cypress test runs.
|
||||||
- name: Invoke Automated analysis workflow
|
- name: Invoke Automated analysis workflow
|
||||||
|
if: ( always() && github.ref == 'refs/heads/release' && github.run_attempt <= 2)
|
||||||
run: |
|
run: |
|
||||||
curl --location --request POST ${{secrets.CYPRESS_WORKFLOW_API}} \
|
curl --location --request POST ${{secrets.CYPRESS_WORKFLOW_API}} \
|
||||||
--header 'x-appsmith-key: ${{ secrets.CYPRESS_WORKFLOW_KEY }}' \
|
--header 'x-appsmith-key: ${{ secrets.CYPRESS_WORKFLOW_KEY }}' \
|
||||||
|
|
@ -236,8 +237,9 @@ jobs:
|
||||||
"repo" : "${{ github.event.repository.full_name }}" ,
|
"repo" : "${{ github.event.repository.full_name }}" ,
|
||||||
"task" : "${{ github.job }}" ,
|
"task" : "${{ github.job }}" ,
|
||||||
"workflow_type" : "${{ github.event_name }}",
|
"workflow_type" : "${{ github.event_name }}",
|
||||||
"workflow_name" : "${{ github.workflow }}",
|
"workflow_name" : "TBD",
|
||||||
"job_id" : "",
|
"job_id" : "",
|
||||||
|
"attempt" : "${{ github.run_attempt }}",
|
||||||
"job_data": {
|
"job_data": {
|
||||||
"ci_test_result_sample_data" : "sample_data"
|
"ci_test_result_sample_data" : "sample_data"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user