Skip to content

Commit

Permalink
ci: Only download private submodules in main repo
Browse files Browse the repository at this point in the history
  • Loading branch information
LeonMatthesKDAB committed Jun 11, 2024
1 parent 0fa2c25 commit f6a4411
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/knut-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,9 @@ jobs:
git submodule update --init --force --depth=1 --recursive -- '3rdparty/tree-sitter'
git submodule update --init --force --depth=1 --recursive -- '3rdparty/tree-sitter-cpp'
- name: Configure SSH for connection to codereview.kdab.com
- name: Configure SSH for connection to codereview.kdab.com (main repo only)
uses: shimataro/ssh-key-action@v2
if: ${{ github.repository == 'KDAB/knut' }}
with:
key: ${{ secrets.GERRIT_SSH_KEY }}
name: id_knut-github-gerrit-access
Expand All @@ -75,7 +76,7 @@ jobs:
IdentityFile ~/.ssh/id_knut-github-gerrit-access
- name: Checkout private submodules (main repo only)
if: github.event_name == 'push'
if: ${{ github.repository == 'KDAB/knut' }}
run: |
git submodule update --init --force --depth=1 --recursive -- '3rdparty/photonwidgets'
git submodule update --init --force --depth=1 --recursive -- '3rdparty/mfc-utils'
Expand Down

0 comments on commit f6a4411

Please sign in to comment.