File tree Expand file tree Collapse file tree 2 files changed +1
-39
lines changed Expand file tree Collapse file tree 2 files changed +1
-39
lines changed Original file line number Diff line number Diff line change 88 push :
99 branches :
1010 - master
11- - staging*
11+ - staging
1212 workflow_dispatch :
1313
1414concurrency :
Original file line number Diff line number Diff line change @@ -111,36 +111,6 @@ check_workflow_status() {
111111 fi
112112}
113113
114- # Early check - fails fast if workflow already failed
115- gh_check () {
116- local workflow_run result short_commit=" ${GIT_COMMIT: 0: 7} "
117-
118- echo " ════════════════════════════════════════════════════════════════"
119- echo " GitHub Actions Check (Early)"
120- echo " Commit: ${short_commit} "
121- echo " ════════════════════════════════════════════════════════════════"
122-
123- workflow_run=$( get_workflow_run " $GIT_COMMIT " ) || {
124- echo " ⚠️ Workflow not found yet - may still be triggering"
125- echo " Pipeline will continue. Status will be checked later."
126- echo " ════════════════════════════════════════════════════════════════"
127- return 0
128- }
129-
130- check_workflow_status " $workflow_run "
131- result=$?
132-
133- echo " ════════════════════════════════════════════════════════════════"
134-
135- if [[ $result -eq 0 ]]; then
136- echo " ✅ Workflow passed or still running - continuing"
137- return 0
138- else
139- echo " ❌ Workflow has failed - stopping deployment"
140- return 1
141- fi
142- }
143-
144114# Continuous monitoring - waits for workflow to complete
145115gh_status () {
146116 local workflow_run result
@@ -213,11 +183,3 @@ gh_status() {
213183 fi
214184 done
215185}
216-
217- # If script is run directly (not sourced), run both checks
218- if [[ " ${BASH_SOURCE[0]} " == " ${0} " ]]; then
219- echo " Running in standalone mode"
220- gh_check
221- gh_status
222- fi
223-
You can’t perform that action at this time.
0 commit comments