Skip to content

Commit 26078fe

Browse files
author
sergii.kostiuk
committed
Merge branch 'github-ci' into staging
2 parents 0cd62e3 + 5b27af1 commit 26078fe

File tree

2 files changed

+1
-39
lines changed

2 files changed

+1
-39
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
push:
99
branches:
1010
- master
11-
- staging*
11+
- staging
1212
workflow_dispatch:
1313

1414
concurrency:

deploy/lib/github_actions_common.sh

Lines changed: 0 additions & 38 deletions
Original file line numberDiff line numberDiff 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
145115
gh_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-

0 commit comments

Comments
 (0)