Skip to content

Commit 4436830

Browse files
authored
fix git related issue #905 (#906)
1 parent 8b9bcc2 commit 4436830

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/build-and-run-tests-from-branch.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ jobs:
3737
- name: Check out ${{ github.event.inputs.commit_sha }} commit
3838
if: github.event.inputs.commit_sha != ''
3939
run: |
40+
git config --global --add safe.directory ${GITHUB_WORKSPACE}
4041
git fetch
4142
git checkout ${{ github.event.inputs.commit_sha }}
4243
- id: set-matrix
@@ -69,6 +70,7 @@ jobs:
6970
- name: Check out ${{ github.event.inputs.commit_sha }} commit
7071
if: github.event.inputs.commit_sha != ''
7172
run: |
73+
git config --global --add safe.directory ${GITHUB_WORKSPACE}
7274
git fetch
7375
git checkout ${{ github.event.inputs.commit_sha }}
7476
- name: Run monitoring
@@ -123,6 +125,7 @@ jobs:
123125
- name: Check out ${{ github.event.inputs.commit_sha }} commit
124126
if: github.event.inputs.commit_sha != ''
125127
run: |
128+
git config --global --add safe.directory ${GITHUB_WORKSPACE}
126129
git fetch
127130
git checkout ${{ github.event.inputs.commit_sha }}
128131
- uses: actions/checkout@v3

0 commit comments

Comments
 (0)