Skip to content

Commit 2ec9ff5

Browse files
Fixed Path
1 parent 4628b8f commit 2ec9ff5

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

entrypoint.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff 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}
9495
done

0 commit comments

Comments
 (0)