From c4e561ec6be3e0c9896f60db4fd6f9e391432e42 Mon Sep 17 00:00:00 2001 From: tastelikefeet <58414341+tastelikefeet@users.noreply.github.com> Date: Mon, 21 Oct 2024 19:31:08 +0800 Subject: [PATCH] fix file mode (#1037) --- .github/workflows/docker-image.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 0966e294..debd184f 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -39,6 +39,14 @@ jobs: runs-on: [modelscope-self-hosted-us] steps: + - name: ResetFileMode + shell: bash + run: | + # reset filemode to allow action runner to delete files + # generated by root in docker + set -e + source ~/.bashrc + sudo chown -R $USER:$USER $ACTION_RUNNER_DIR - name: Checkout repository uses: actions/checkout@v4 with: