diff --git a/.github/workflows/test-build-docker-image.yml b/.github/workflows/test-build-docker-image.yml index 0ca0c30b85..15adab6ce9 100644 --- a/.github/workflows/test-build-docker-image.yml +++ b/.github/workflows/test-build-docker-image.yml @@ -201,6 +201,32 @@ jobs: SLACK_FOOTER: "Push Workflow" SLACK_MESSAGE: ${{steps.slack_notification.outputs.slack_message}} + # Dump github context for future use + - name: Dump GitHub context + env: + GITHUB_CONTEXT: ${{ toJSON(github) }} + run: | + echo "$GITHUB_CONTEXT" + echo ${{ github.repository }} + + # This step triggers an external workflow for automated analysis of Cypress test runs. + - name: Invoke Automated analysis workflow + run: | + curl --location --request POST ${{secrets.CYPRESS_WORKFLOW_API}} \ + --header 'x-appsmith-key: ${{ secrets.CYPRESS_WORKFLOW_KEY }}' \ + --header 'Content-Type: application/json' \ + --data-raw '{ "workflow_id" : ${{ github.run_id }} , + "commit_id" : "${{ github.sha }}" , + "repo" : "${{ github.event.repository.full_name }}" , + "task" : "${{ github.job }}" , + "workflow_type" : "${{ github.event_name }}", + "workflow_name" : "${{ github.workflow }}", + "job_id" : "", + "job_data": { + "ci_test_result_sample_data" : "sample_data" + } + }' + # Force save the CI failed spec list into a cache - name: Store the combined run result for CI if: needs.ci-test.result != 'success'