diff --git a/.gitea/workflows/sync-source.yaml b/.gitea/workflows/sync-source.yaml index f87dedb..8845327 100644 --- a/.gitea/workflows/sync-source.yaml +++ b/.gitea/workflows/sync-source.yaml @@ -19,32 +19,10 @@ jobs: echo "=== /proc/mounts ===" cat /proc/mounts - - name: Run sync script with debug - run: | - echo "Running /data/sync.sh" - /bin/bash -x /data/sync.sh +# - name: Run sync script with debug +# run: | +# echo "Running /data/sync.sh" +# /bin/bash -x /data/sync.sh - name: Run sync script - run: /data/sync.sh - - name: Check dir - run: ls -la /data - - - name: Clone or Pull - env: - REPO_URL: https://gitea.digitoolsolutions.synology.me/lamtruong28/Test.git - TARGET_DIR: /output/Test - BRANCH: develop - run: | - if [ ! -d "$TARGET_DIR/.git" ]; then - echo "Repository does not exist. Cloning..." - git clone -b $BRANCH $REPO_URL $TARGET_DIR - else - echo "Repository already exists. Pulling..." - git -C $TARGET_DIR fetch origin - git -C $TARGET_DIR checkout $BRANCH - git -C $TARGET_DIR reset --hard origin/$BRANCH - fi - ls -la /output/Test - - - name: Check test - run: ls -la /output/Test \ No newline at end of file + run: /data/sync.sh \ No newline at end of file