Skip to content

Commit ec4b8d7

Browse files
committed
skip main build check
1 parent 0371155 commit ec4b8d7

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

.github/workflows/release-build.yml

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -35,23 +35,23 @@ jobs:
3535
- name: Checkout Repo @ SHA - ${{ github.sha }}
3636
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 #v5.0.0
3737

38-
- name: Check main build status
39-
env:
40-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
41-
run: |
42-
WORKFLOW_ID=$(gh api repos/${{ github.repository }}/actions/workflows --jq '.workflows[] | select(.name=="Python Instrumentation Main Build") | .id')
43-
LATEST_RUN=$(gh api repos/${{ github.repository }}/actions/workflows/$WORKFLOW_ID/runs --jq '[.workflow_runs[] | select(.head_branch=="${{ github.ref_name }}")] | sort_by(.created_at) | .[-1] | {conclusion, status}')
44-
STATUS=$(echo "$LATEST_RUN" | jq -r '.status')
45-
CONCLUSION=$(echo "$LATEST_RUN" | jq -r '.conclusion')
38+
# - name: Check main build status
39+
# env:
40+
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
41+
# run: |
42+
# WORKFLOW_ID=$(gh api repos/${{ github.repository }}/actions/workflows --jq '.workflows[] | select(.name=="Python Instrumentation Main Build") | .id')
43+
# LATEST_RUN=$(gh api repos/${{ github.repository }}/actions/workflows/$WORKFLOW_ID/runs --jq '[.workflow_runs[] | select(.head_branch=="${{ github.ref_name }}")] | sort_by(.created_at) | .[-1] | {conclusion, status}')
44+
# STATUS=$(echo "$LATEST_RUN" | jq -r '.status')
45+
# CONCLUSION=$(echo "$LATEST_RUN" | jq -r '.conclusion')
4646

47-
if [ "$STATUS" = "in_progress" ] || [ "$STATUS" = "queued" ]; then
48-
echo "Main build is still running (status: $STATUS). Cannot proceed with release."
49-
exit 1
50-
elif [ "$CONCLUSION" != "success" ]; then
51-
echo "Latest main build on branch ${{ github.ref_name }} conclusion: $CONCLUSION"
52-
exit 1
53-
fi
54-
echo "Main build succeeded, proceeding with release"
47+
# if [ "$STATUS" = "in_progress" ] || [ "$STATUS" = "queued" ]; then
48+
# echo "Main build is still running (status: $STATUS). Cannot proceed with release."
49+
# exit 1
50+
# elif [ "$CONCLUSION" != "success" ]; then
51+
# echo "Latest main build on branch ${{ github.ref_name }} conclusion: $CONCLUSION"
52+
# exit 1
53+
# fi
54+
# echo "Main build succeeded, proceeding with release"
5555

5656
- name: Build Wheel and Image Files
5757
uses: ./.github/actions/artifacts_build

0 commit comments

Comments
 (0)