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: |