File tree Expand file tree Collapse file tree
.github/actions/setup-deps Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -18,18 +18,18 @@ runs:
1818 GH_TOKEN : ${{ inputs.token }}
1919 run : |
2020 clone_with_retry() {
21- local repo=$1 dest=$2
21+ local repo=$1 dest=$2 branch=${3:-dev}
2222 for i in 1 2 3; do
23- git clone --depth=1 "https://x-access-token:${GH_TOKEN}@github.com/GrayCodeAI/${repo}.git" "$dest" && return 0
23+ git clone --depth=1 --branch "$branch" "https://x-access-token:${GH_TOKEN}@github.com/GrayCodeAI/${repo}.git" "$dest" && return 0
2424 echo "Retry $i for $repo..." && sleep $((i * 5))
2525 done
2626 echo "Failed to clone $repo after 3 attempts" && return 1
2727 }
28- clone_with_retry eyrie ../eyrie
29- clone_with_retry tok ../tok
30- clone_with_retry yaad ../yaad
31- clone_with_retry inspect ../inspect
32- clone_with_retry sight ../sight
28+ clone_with_retry eyrie ../eyrie dev
29+ clone_with_retry tok ../tok dev
30+ clone_with_retry yaad ../yaad dev
31+ clone_with_retry inspect ../inspect dev
32+ clone_with_retry sight ../sight dev
3333
3434 - name : Set up Go
3535 uses : actions/setup-go@v5
You can’t perform that action at this time.
0 commit comments