diff --git a/.github/workflows/budibase_ci.yml b/.github/workflows/budibase_ci.yml index c04031cc9d..4ada96accc 100644 --- a/.github/workflows/budibase_ci.yml +++ b/.github/workflows/budibase_ci.yml @@ -26,10 +26,16 @@ jobs: lint: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - name: Checkout repo and submodules + uses: actions/checkout@v3 + if: github.repository == github.event.pull_request.head.repo.full_name with: submodules: true token: ${{ secrets.PERSONAL_ACCESS_TOKEN || github.token }} + - name: Checkout repo only + uses: actions/checkout@v3 + if: github.repository != github.event.pull_request.head.repo.full_name + - name: Use Node.js 14.x uses: actions/setup-node@v3 with: @@ -41,10 +47,16 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - name: Checkout repo and submodules + uses: actions/checkout@v3 + if: github.repository == github.event.pull_request.head.repo.full_name with: submodules: true token: ${{ secrets.PERSONAL_ACCESS_TOKEN || github.token }} + - name: Checkout repo only + uses: actions/checkout@v3 + if: github.repository != github.event.pull_request.head.repo.full_name + - name: Use Node.js 14.x uses: actions/setup-node@v3 with: @@ -59,10 +71,16 @@ jobs: test-libraries: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - name: Checkout repo and submodules + uses: actions/checkout@v3 + if: github.repository == github.event.pull_request.head.repo.full_name with: submodules: true token: ${{ secrets.PERSONAL_ACCESS_TOKEN || github.token }} + - name: Checkout repo only + uses: actions/checkout@v3 + if: github.repository != github.event.pull_request.head.repo.full_name + - name: Use Node.js 14.x uses: actions/setup-node@v3 with: @@ -79,10 +97,16 @@ jobs: test-services: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - name: Checkout repo and submodules + uses: actions/checkout@v3 + if: github.repository == github.event.pull_request.head.repo.full_name with: submodules: true token: ${{ secrets.PERSONAL_ACCESS_TOKEN || github.token }} + - name: Checkout repo only + uses: actions/checkout@v3 + if: github.repository != github.event.pull_request.head.repo.full_name + - name: Use Node.js 14.x uses: actions/setup-node@v3 with: @@ -98,11 +122,14 @@ jobs: test-pro: runs-on: ubuntu-latest + if: github.repository == github.event.pull_request.head.repo.full_name steps: - - uses: actions/checkout@v3 + - name: Checkout repo and submodules + uses: actions/checkout@v3 with: submodules: true token: ${{ secrets.PERSONAL_ACCESS_TOKEN || github.token }} + - name: Use Node.js 14.x uses: actions/setup-node@v3 with: @@ -114,10 +141,16 @@ jobs: integration-test: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - name: Checkout repo and submodules + uses: actions/checkout@v3 + if: github.repository == github.event.pull_request.head.repo.full_name with: submodules: true token: ${{ secrets.PERSONAL_ACCESS_TOKEN || github.token }} + - name: Checkout repo only + uses: actions/checkout@v3 + if: github.repository != github.event.pull_request.head.repo.full_name + - name: Use Node.js 14.x uses: actions/setup-node@v3 with: @@ -136,8 +169,9 @@ jobs: check-pro-submodule: runs-on: ubuntu-latest + if: github.repository == github.event.pull_request.head.repo.full_name steps: - - name: Checkout code + - name: Checkout repo and submodules uses: actions/checkout@v3 with: submodules: true