From 84ef22e148ad9a887026148b83adf23de616b90f Mon Sep 17 00:00:00 2001 From: kjh2064 Date: Mon, 29 Jun 2026 11:15:23 +0900 Subject: [PATCH] fix(ci): replace hardcoded git checkout clone commands with standard actions/checkout --- .gitea/workflows/ci.yml | 24 ++++++------------------ 1 file changed, 6 insertions(+), 18 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 0e2c217..113062c 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -19,15 +19,9 @@ jobs: steps: - name: Checkout Code - run: | - if [ -d .git ]; then - git remote set-url origin http://x-access-token:${{ secrets.GITHUB_TOKEN }}@192.168.123.100:8418/KimJaeHyun/myfinance.git - else - git init - git remote add origin http://x-access-token:${{ secrets.GITHUB_TOKEN }}@192.168.123.100:8418/KimJaeHyun/myfinance.git - fi - git fetch origin ${{ github.sha }} --depth=1 - git reset --hard FETCH_HEAD + uses: actions/checkout@v3 + with: + fetch-depth: 0 - name: Configure Runtime Paths run: | @@ -221,15 +215,9 @@ jobs: steps: - name: Checkout Code - run: | - if [ -d .git ]; then - git remote set-url origin http://x-access-token:${{ secrets.GITHUB_TOKEN }}@192.168.123.100:8418/KimJaeHyun/myfinance.git - else - git init - git remote add origin http://x-access-token:${{ secrets.GITHUB_TOKEN }}@192.168.123.100:8418/KimJaeHyun/myfinance.git - fi - git fetch origin ${{ github.sha }} --depth=1 - git reset --hard FETCH_HEAD + uses: actions/checkout@v3 + with: + fetch-depth: 0 - name: Setup Python Environment run: |