@misterhuydo/sentinel 1.5.3 → 1.5.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -286,6 +286,15 @@ def run_repo_task(
|
|
|
286
286
|
logger.error("git push failed for %s: %s", repo.repo_name, r.stderr[:300])
|
|
287
287
|
return "error", f"git push failed: {r.stderr.strip()[:200]}"
|
|
288
288
|
logger.info("Repo task: pushed to %s/%s sha=%s", repo.repo_name, repo.branch, commit_hash[:8])
|
|
289
|
+
if repo.cicd_type:
|
|
290
|
+
try:
|
|
291
|
+
from .cicd_trigger import trigger as cicd_trigger
|
|
292
|
+
cicd_trigger(repo, None, task.fingerprint)
|
|
293
|
+
logger.info("Repo task: CI/CD triggered for %s (%s)", repo.repo_name, repo.cicd_type)
|
|
294
|
+
if on_progress:
|
|
295
|
+
on_progress(f":rocket: Release triggered via `{repo.cicd_type}`")
|
|
296
|
+
except Exception as exc:
|
|
297
|
+
logger.warning("Repo task: CI/CD trigger failed for %s: %s", repo.repo_name, exc)
|
|
289
298
|
return "done", None
|
|
290
299
|
else:
|
|
291
300
|
branch = f"sentinel/task-{task.fingerprint[:8]}"
|