Skip to content

Commit

Permalink
Ad safe dir for submoduls
Browse files Browse the repository at this point in the history
  • Loading branch information
vmilosevic authored Oct 1, 2024
1 parent 9f6c46b commit b1f4743
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/test-runner.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
strategy:
fail-fast: false
matrix:
machine: [ ubuntu-20.04, ubuntu-22.04, e75, e150, e300, n150, n300 ]
machine: [ ubuntu-20.04, ubuntu-22.04, e75, e150, e300, n150 ]

name: Check runner
runs-on: ${{ matrix.machine }}
Expand Down Expand Up @@ -58,7 +58,7 @@ jobs:
strategy:
fail-fast: false
matrix:
machine: [ ubuntu-20.04, ubuntu-22.04, e75, e150, e300, n150, n300 ]
machine: [ ubuntu-20.04, ubuntu-22.04, e75, e150, e300, n150 ]
image: [ tt-umd-ci-ubuntu-22.04, tt-umd-ci-ubuntu-20.04 ]

name: Check runner docker
Expand All @@ -82,8 +82,12 @@ jobs:
echo "build-output-dir=$(pwd)/build" >> "$GITHUB_OUTPUT"
echo "install-output-dir=$(pwd)/install" >> "$GITHUB_OUTPUT"
- name: Git safe dir
run: git config --global --add safe.directory ${{ steps.strings.outputs.work-dir }}
- name: Git add safe dir for base rpo and submodules
run: |
# Mark the main repository as safe
git config --global --add safe.directory "$(pwd)"
# Iterate over all submodules and mark them as safe
git submodule foreach 'git config --global --add safe.directory "$toplevel/$sm_path"'
- uses: actions/checkout@v4
with:
Expand Down

0 comments on commit b1f4743

Please sign in to comment.