Add automatic SharedCode consumer synchronization
This commit is contained in:
1 parent
dfae1cb572
commit
9a79e6f649
3 files changed
+351
No files matched your search
Executable
+14
@@ -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
|
||||
Reference in new issue
Block a user