File tree Expand file tree Collapse file tree 1 file changed +11
-13
lines changed Expand file tree Collapse file tree 1 file changed +11
-13
lines changed Original file line number Diff line number Diff line change @@ -21,26 +21,24 @@ permissions:
2121 contents : write
2222
2323jobs :
24- wait-for-main-build :
25- runs-on : ubuntu-latest
26- steps :
27- - name : Wait for E2E test to succeed
28- uses : ezhang6811/wait-on-check-action@6275ea93847ce5952ab8ceeac8fb1111820cf44d
29- with :
30- ref : ${{ github.ref }}
31- check-name : ' Application Signals E2E Test'
32- repo-token : ${{ secrets.GITHUB_TOKEN }}
33- wait-interval : 30
34- allowed-conclusions : success
35-
3624 build :
37- needs : wait-for-main-build
3825 environment : Release
3926 runs-on : ubuntu-latest
4027 steps :
4128 - name : Checkout Repo @ SHA - ${{ github.sha }}
4229 uses : actions/checkout@v4
4330
31+ - name : Check main build status
32+ run : |
33+ WORKFLOW_ID=$(gh api repos/${{ github.repository }}/actions/workflows --jq '.workflows[] | select(.name=="Python Instrumentation Main Build") | .id')
34+ STATUS=$(gh api repos/${{ github.repository }}/actions/workflows/$WORKFLOW_ID/runs --jq '.workflow_runs[] | select(.head_branch=="${{ github.ref_name }}") | .conclusion' | head -1)
35+ if [ "$STATUS" != "success" ]; then
36+ echo "Latest main build on branch ${{ github.ref_name }} status: $STATUS"
37+ exit 1
38+ fi
39+ env :
40+ GH_TOKEN : ${{ github.token }}
41+
4442 - name : Build Wheel and Image Files
4543 uses : ./.github/actions/artifacts_build
4644 with :
You can’t perform that action at this time.
0 commit comments