From 879c0eddb971e6e375aa6f13fc9a151339585bf1 Mon Sep 17 00:00:00 2001 From: chaoming Date: Mon, 12 Oct 2026 11:46:38 +0800 Subject: [PATCH] deploy: chown release to root so files are not owned by the runner uid 1001 --- .github/workflows/deploy-docs.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy-docs.yml b/.github/workflows/deploy-docs.yml index c4954dfc..1ee48153 100644 --- a/.github/workflows/deploy-docs.yml +++ b/.github/workflows/deploy-docs.yml @@ -109,6 +109,8 @@ jobs: base="${{ env.DEPLOY_PATH }}" release="$base/releases/${{ steps.release.outputs.id }}" test -f "$release/index.html" + # scp-action untars as root, which keeps the runner's uid/gid 1001; make the release root-owned. + chown -R root:root "$release" ln -sfn "$release" "$base/current.next" mv -Tf "$base/current.next" "$base/current" current="$(readlink -f "$base/current")"