diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index f8d9781..bd61507 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -21,10 +21,27 @@ jobs: - name: Checkout dependencies run: | - git clone https://git.marketally.com/tutus-one/tutus-bolt.git C:\tutus-bolt - git clone https://git.marketally.com/tutus-one/tutus-consensus.git C:\tutus-consensus - git clone https://git.marketally.com/tutus-one/tutus-ordered-json.git C:\tutus-ordered-json - git clone https://git.marketally.com/tutus-one/tutus-rfc6979.git C:\tutus-rfc6979 + # Clone or update dependency repos + if (Test-Path C:\tutus-bolt) { + Push-Location C:\tutus-bolt; git pull; Pop-Location + } else { + git clone https://git.marketally.com/tutus-one/tutus-bolt.git C:\tutus-bolt + } + if (Test-Path C:\tutus-consensus) { + Push-Location C:\tutus-consensus; git pull; Pop-Location + } else { + git clone https://git.marketally.com/tutus-one/tutus-consensus.git C:\tutus-consensus + } + if (Test-Path C:\tutus-ordered-json) { + Push-Location C:\tutus-ordered-json; git pull; Pop-Location + } else { + git clone https://git.marketally.com/tutus-one/tutus-ordered-json.git C:\tutus-ordered-json + } + if (Test-Path C:\tutus-rfc6979) { + Push-Location C:\tutus-rfc6979; git pull; Pop-Location + } else { + git clone https://git.marketally.com/tutus-one/tutus-rfc6979.git C:\tutus-rfc6979 + } - name: Update go.mod for CI working-directory: tutus-chain