Skip to content

Commit

Permalink
fix sync shell
Browse files Browse the repository at this point in the history
  • Loading branch information
sync2gitee committed Mar 8, 2024
1 parent 2623b4b commit cb080da
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/gitee-sync-shell.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ git config --global user.name "sync2gitee"

pwd
git remote -v
git checkout dev/4.3.1

# change android maven to china repos
sed -ie "s#google()#maven { url \"https\://maven.aliyun.com/repository/public\" }\n google()#g" Android/APIExample/settings.gradle
Expand All @@ -15,10 +14,10 @@ git add Android/APIExample/settings.gradle Android/APIExample/gradle/wrapper/gra
git commit -m '[Android] gitee sync >> use china repos.'

# change iOS Podfile to china repos
sed -ie '1s/^/source "https://mirrors.tuna.tsinghua.edu.cn/git/CocoaPods/Specs.git"\n' iOS/APIExample/Podfile
sed -ie '1s/^/source "https://mirrors.tuna.tsinghua.edu.cn/git/CocoaPods/Specs.git"\n' iOS/APIExample-Audio/Podfile
sed -ie '1s/^/source "https://mirrors.tuna.tsinghua.edu.cn/git/CocoaPods/Specs.git"\n' iOS/APIExample-OC/Podfile
sed -ie '1s/^/source "https://mirrors.tuna.tsinghua.edu.cn/git/CocoaPods/Specs.git"\n' macOS/Podfile
sed -ie '1s#^#source "https://mirrors.tuna.tsinghua.edu.cn/git/CocoaPods/Specs.git"\n#' iOS/APIExample/Podfile
sed -ie '1s#^#source "https://mirrors.tuna.tsinghua.edu.cn/git/CocoaPods/Specs.git"\n#' iOS/APIExample-Audio/Podfile
sed -ie '1s#^#source "https://mirrors.tuna.tsinghua.edu.cn/git/CocoaPods/Specs.git"\n#' iOS/APIExample-OC/Podfile
sed -ie '1s#^#source "https://mirrors.tuna.tsinghua.edu.cn/git/CocoaPods/Specs.git"\n#' macOS/Podfile
git add iOS/APIExample/Podfile iOS/APIExample-Audio/Podfile iOS/APIExample-OC/Podfile macOS/Podfile
git commit -m '[iOS] gitee sync >> use china repos.'

Expand Down

0 comments on commit cb080da

Please sign in to comment.