File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -23,12 +23,12 @@ for R in "${REPOSITORIES[@]}"; do
2323 echo " ###[group] 📓 $R "
2424
2525 REPO_URL=" https://x-access-token:${GITHUB_TOKEN} @github.com/${R} .git"
26- GIT_PATH=" ${TEMP_PATH}${R} "
26+ GIT_PATH=" ${TEMP_PATH} /gh "
2727 LOCAL_PATH=" ${GIT_PATH} /.github/workflows/"
2828 DEST_STATUS=" Updated"
2929 echo " Git URL : $REPO_URL "
3030 echo " Clone Path : $GIT_PATH "
31- git clone --no-hardlinks --no-tags --depth 1 $REPO_URL ${R }
31+ git clone --no-hardlinks --no-tags --depth 1 $REPO_URL ${GIT_PATH }
3232 echo " "
3333
3434 if [ ! -d " $LOCAL_PATH " ]; then
@@ -65,7 +65,7 @@ for R in "${REPOSITORIES[@]}"; do
6565 cp " $SRC_FULL_PATH " " ${LOCAL_PATH}${DEST_FILE} "
6666
6767 if [ " $( git status --porcelain) " != " " ]; then
68- git add $LOCAL_PATH -f
68+ git add ${ LOCAL_PATH}${DEST_FILE} -f
6969 git commit -m " 💬 #${GITHUB_RUN_NUMBER} - Workflow File ${DEST_STATUS} / ⚡ Triggered By ${GITHUB_REPOSITORY} @${GITHUB_SHA} "
7070 else
7171 echo " ✅ Nothing Changed For Workflow : ${SRC_FILE} "
@@ -91,4 +91,5 @@ for R in "${REPOSITORIES[@]}"; do
9191 fi
9292 echo " ###[endgroup]"
9393 cd $TEMP_PATH
94+ rm -rf ${GIT_PATH}
9495done
You can’t perform that action at this time.
0 commit comments