Skip to content

Commit

Permalink
Added check for successful merge job
Browse files Browse the repository at this point in the history
  • Loading branch information
dfitchett committed Nov 22, 2023
1 parent ffde81d commit e6cf6a9
Showing 1 changed file with 14 additions and 8 deletions.
22 changes: 14 additions & 8 deletions .github/workflows/ee-ep-merge-end-to-end.yml
Original file line number Diff line number Diff line change
Expand Up @@ -120,22 +120,28 @@ jobs:
# Allow time to finish processing
sleep 5s
- name: 'Test get job ID'
shell: bash
run: |
echo ${{steps.get_job_id.outputs.job_id}}
- name: 'Get Merge Request Status'
uses: indiesdev/[email protected]
id: merge_status
with:
id: merge_status
url: 'http://localhost:8140/merge/${{steps.get_job_id.outputs.job_id}}'
method: 'GET'
body: '{"pending_claim_id":1001,"ep400_claim_id":1000}'
accept: 202
accept: 200
retries: 3
log-response: true

- name: 'Verify Merge Complete'
shell: bash
run: |
state="${{ fromJSON(steps.merge_status.outputs.response).data.job.state }}"
echo $state
if $state != "COMPLETED_SUCCESS"; then
echo "Merge Request completed with error"
echo ${{ steps.merge_status.outputs.response }}
exit 10
fi
- name: 'Clean shutdown of all containers'
if: always()
shell: bash
Expand Down

0 comments on commit e6cf6a9

Please sign in to comment.