mirror of
https://github.com/TommyFang2077/dsh-desktop.git
synced 2026-08-18 05:16:35 +08:00
fix: export owner vars for subprocess script
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user