Add automatic SharedCode consumer synchronization

This commit is contained in:
Gabriel20xx committed 2026-08-06 16:09:41 +02:00
1 parent dfae1cb572
commit 9a79e6f649
3 files changed
+351

No files matched your search

+14
View File
@@ -0,0 +1,14 @@
#!/usr/bin/env bash
set -euo pipefail
repo_root="$(git rev-parse --show-toplevel)"
sync_script="$repo_root/scripts/sync-consumers.ps1"
if command -v pwsh >/dev/null 2>&1; then
pwsh -NoProfile -NonInteractive -ExecutionPolicy Bypass -File "$sync_script" -Commit
elif command -v powershell.exe >/dev/null 2>&1; then
powershell.exe -NoProfile -NonInteractive -ExecutionPolicy Bypass -File "$sync_script" -Commit
else
echo "SharedCode synchronization requires pwsh or powershell.exe." >&2
exit 1
fi