feat(aihr): complete uni-app role workflows

This commit is contained in:
2026-07-09 10:42:20 +08:00
parent e4070c8b8c
commit 678543e8a5
73 changed files with 15696 additions and 134 deletions
+21 -5
View File
@@ -2,12 +2,28 @@
set -euo pipefail
ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
export PATH="/opt/homebrew/bin:/usr/local/bin:$PATH"
if [[ -f "$ROOT_DIR/.env.local" ]]; then
set -a
# shellcheck disable=SC1091
source "$ROOT_DIR/.env.local"
set +a
load_env_file() {
local env_file="$1"
if [[ -f "$env_file" ]]; then
set -a
# shellcheck disable=SC1090
source "$env_file"
set +a
fi
}
load_env_file "$ROOT_DIR/.env.local"
if [[ -f "$ROOT_DIR/backend/.env" ]]; then
load_env_file "$ROOT_DIR/backend/.env"
if [[ -n "${client_id:-}" ]]; then
export AIHR_ORG_SYNC_CLIENT_ID="$client_id"
fi
if [[ -n "${client_secret:-}" ]]; then
export AIHR_ORG_SYNC_CLIENT_SECRET="$client_secret"
fi
fi
cd "$ROOT_DIR/backend"