浏览代码

(experiment) reset permissions before checking out

Peter Squicciarini 4 年之前
父节点
当前提交
c9ae0c605f
共有 1 个文件被更改,包括 10 次插入0 次删除
  1. 10 0
      .github/workflows/linux.yml

+ 10 - 0
.github/workflows/linux.yml

@@ -32,6 +32,16 @@ jobs:
           image: vscodium/vscodium-linux-build-agent:stretch-armhf
 
     steps:
+      - name: Get Actions user id
+        id: get_uid
+        run: |
+          actions_user_id=`id -u $USER`
+          echo $actions_user_id
+          echo ::set-output name=uid::$actions_user_id
+      - name: Correct Ownership in GITHUB_WORKSPACE directory
+        uses: peter-murray/reset-workspace-ownership-action@v1
+        with:
+          user_id: ${{ steps.get_uid.outputs.uid }}
       - uses: actions/checkout@v2
 
       - name: Setup Node.js environment