From 89a6164f9f0818a94c2b6ee7d0f34f7c78860e18 Mon Sep 17 00:00:00 2001 From: Keith Crain Date: Tue, 25 Aug 2020 21:40:24 -0400 Subject: [PATCH] Update docproc.yml Moved the shell commands that are unique to this repository to worker file. --- .github/workflows/docproc.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docproc.yml b/.github/workflows/docproc.yml index 9eacab4..b9548d8 100644 --- a/.github/workflows/docproc.yml +++ b/.github/workflows/docproc.yml @@ -7,7 +7,7 @@ name: Process MainWP PHP Documentation on: push: branches: [ documentation ] - + # A workflow run is made up of one or more jobs that can run sequentially or in parallel jobs: # This workflow contains a single job called "build" @@ -22,4 +22,8 @@ jobs: with: hosts: 'root@code-reference.mainwp.com' privateKey: ${{ secrets.PRIVATE_KEY }} - command: sh ~/scripts/docproc.sh + command: | + sleep 3 + rm -rf ~/Source/mainwp-child + git clone https://github.com/mainwp/mainwp.git ~/Source/mainwp-child + sh ~/scripts/docproc.sh