From 24b17be1d28c4129d31775351f89207834bdebd2 Mon Sep 17 00:00:00 2001 From: Adria Navarro Date: Thu, 29 Jun 2023 10:39:09 +0100 Subject: [PATCH] Fetch dynamically on lint --- .github/workflows/budibase_ci.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/budibase_ci.yml b/.github/workflows/budibase_ci.yml index c04031cc9d..fe2c2d7bc7 100644 --- a/.github/workflows/budibase_ci.yml +++ b/.github/workflows/budibase_ci.yml @@ -27,8 +27,14 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 + - name: Fetch pro submodule if running in BB + run: | + if [ "$GITHUB_REPOSITORY" = "Budibase/budibase" ]; then + git submodule update --init --recursive + else + echo "Submodule fetch skipped." + fi with: - submodules: true token: ${{ secrets.PERSONAL_ACCESS_TOKEN || github.token }} - name: Use Node.js 14.x uses: actions/setup-node@v3