From 7823c603b14b51e17f125fd787628b2d0fd1331a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20H=C3=BCbelbauer?= Date: Thu, 14 Apr 2022 00:47:46 +0200 Subject: [PATCH] Use checkout@v3 with submodules Let's see if this works. --- .github/workflows/main.yml | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index d2d5e9d..5f6376d 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,14 +1,15 @@ name: ci_cd -on: - push: - branches: - - master +on: push + jobs: main: runs-on: windows-latest steps: - name: Check out the source code - uses: actions/checkout@v2 + uses: actions/checkout@v3 + with: + ref: master + submodules: recursive - name: Switch to Node 14 (needed for PKG) uses: actions/setup-node@v2-beta with: @@ -18,12 +19,6 @@ jobs: Set-PSDebug -Trace 1 $ErrorActionPreference = "Stop" - # Initialize the dependencies in Git submodules - git submodule update --recursive --init - if (-not $?) { - throw "Failed to run git submodule update" - } - # Run the JavaScript and MarkDown tests node test if (-not $?) {