File tree Expand file tree Collapse file tree 3 files changed +10
-5
lines changed
Expand file tree Collapse file tree 3 files changed +10
-5
lines changed Original file line number Diff line number Diff line change 1818 with :
1919 fetch-depth : 0 # Повна історія для режиму diff
2020
21- - name : Configure Git safe directory
22- run : git config --global --add safe.directory /github/workspace
23-
2421 - name : Update Vector Code Map
2522 uses : forproxyband/vector-code-map@main
2623 env :
Original file line number Diff line number Diff line change 11FROM node:18-slim
22
33RUN apt-get update && apt-get install -y git
4- RUN git config --global --add safe.directory /github/workspace
54
65WORKDIR /app
76
Original file line number Diff line number Diff line change @@ -18,7 +18,16 @@ async function run() {
1818
1919 // Підключаємося до векторної бази даних
2020 let dbAdapter ;
21-
21+
22+ const { execSync } = require ( 'child_process' ) ;
23+ try {
24+ execSync ( 'git config --global --add safe.directory /github/workspace' ) ;
25+ console . log ( 'Added /github/workspace as safe directory' ) ;
26+ } catch ( error ) {
27+ console . error ( 'Failed to configure safe directory:' , error . message ) ;
28+ }
29+
30+
2231 if ( dbType === 'chromadb' ) {
2332 const chromaHost = core . getInput ( 'chroma_host' , { required : true } ) ;
2433 const chromaPort = core . getInput ( 'chroma_port' ) || '8000' ;
You can’t perform that action at this time.
0 commit comments