浏览代码

update main workflow to mount volumes with options

Mark Szepieniec 3 年之前
父节点
当前提交
144f407c20
共有 1 个文件被更改,包括 4 次插入4 次删除
  1. 4 4
      .github/workflows/main.yml

+ 4 - 4
.github/workflows/main.yml

@@ -22,18 +22,18 @@ jobs:
         credentials:
           username: ${{ github.actor }}
           password: ${{ secrets.GITHUB_TOKEN }}
-        volumes:
-          - $GITHUB_WORKSPACE:$GITHUB_WORKSPACE
+        options:
+          - '-v $GITHUB_WORKSPACE:$GITHUB_WORKSPACE'
 
     steps:
       # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
       - uses: actions/checkout@v2
       
       - name: Test directory contents
-        run: ls -al
+        run: 'ls -al'
 
       - name: Build resume
-        run: ssh buildhost pwd #make
+        run: 'ssh buildhost pwd #make'
 
       - name: Upload a Build Artifact
         uses: actions/upload-artifact@v2.2.3