From 601077468c923f2f033f80a2d4fac5d830f1bffa Mon Sep 17 00:00:00 2001 From: TommyFang Date: Mon, 17 Aug 2026 19:52:05 +0800 Subject: [PATCH] fix: export owner vars for subprocess script --- .gitea/workflows/publish.yml | 4 ++-- scripts/publish-gitea-actions.sh | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/publish.yml b/.gitea/workflows/publish.yml index 1e4e99c..70e54a3 100644 --- a/.gitea/workflows/publish.yml +++ b/.gitea/workflows/publish.yml @@ -18,13 +18,13 @@ jobs: for i in $(seq 1 40); do rm -rf repo git clone -q --depth 1 http://192.168.30.33:3000/TomHanck4/dsh-easy-desktop.git repo 2>/dev/null || { sleep 5; continue; } - if grep -qF 'GITEA_OWNER="$REPO_OWNER"' repo/scripts/publish-gitea-actions.sh 2>/dev/null; then + if grep -qF 'export GITEA_OWNER="$REPO_OWNER"' repo/scripts/publish-gitea-actions.sh 2>/dev/null; then echo "publish scripts fresh (attempt ${i})" break fi sleep 10 done - grep -qF 'GITEA_OWNER="$REPO_OWNER"' repo/scripts/publish-gitea-actions.sh || { + grep -qF 'export GITEA_OWNER="$REPO_OWNER"' repo/scripts/publish-gitea-actions.sh || { echo "mirror still stale after ~6 minutes" >&2 exit 1 } diff --git a/scripts/publish-gitea-actions.sh b/scripts/publish-gitea-actions.sh index d97eba0..992185c 100755 --- a/scripts/publish-gitea-actions.sh +++ b/scripts/publish-gitea-actions.sh @@ -7,8 +7,8 @@ set -euo pipefail GITHUB_REPO="${GITHUB_REPO:-TommyFang2077/dsh-easy-desktop}" REPO_OWNER="${GITEA_OWNER:-TomHanck4}" REPO_NAME="${GITEA_REPO:-dsh-easy-desktop}" -GITEA_OWNER="$REPO_OWNER" -GITEA_REPO="$REPO_NAME" +export GITEA_OWNER="$REPO_OWNER" +export GITEA_REPO="$REPO_NAME" GITEA_BASE_URL="${GITEA_BASE_URL:-http://192.168.30.33:3000}" PACKAGE_BASE_URL="${PACKAGE_BASE_URL:-https://git.fangsiyuan.top/api/packages/TomHanck4/generic/dsh-easy-desktop-updater}" RELEASE_TAG="${RELEASE_TAG:-latest}"