From d924c5eb97f0684bc6a3c3e66c7a0d3cafe162e6 Mon Sep 17 00:00:00 2001 From: telesoho Date: Mon, 19 Aug 2024 13:40:21 +0800 Subject: [PATCH] ci: checkout action with submodule --- .github/workflows/build-and-test.yml | 5 ++++- .github/workflows/publish extension.yml | 11 ++++++++--- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index b775b8d..ad14555 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -17,7 +17,10 @@ jobs: node-version: [18.x] steps: - - uses: actions/checkout@v4 + - name: Checkout repository + uses: actions/checkout@v4 + with: + submodules: recursive - name: Setup Node v${{ matrix.node-version }} uses: actions/setup-node@v4 diff --git a/.github/workflows/publish extension.yml b/.github/workflows/publish extension.yml index c4d7194..b2b4c2b 100644 --- a/.github/workflows/publish extension.yml +++ b/.github/workflows/publish extension.yml @@ -14,8 +14,10 @@ jobs: permissions: contents: write steps: - - name: Checkout - uses: actions/checkout@v3 + - name: Checkout repository + uses: actions/checkout@v4 + with: + submodules: recursive - name: Release uses: softprops/action-gh-release@v1 @@ -28,7 +30,10 @@ jobs: # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ steps: - - uses: actions/checkout@v3 + - name: Checkout repository + uses: actions/checkout@v4 + with: + submodules: recursive - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@v3 with: