Skip to content

Commit

Permalink
update sync script.
Browse files Browse the repository at this point in the history
  • Loading branch information
xgfd3 committed Mar 8, 2024
1 parent 0289b30 commit a5bae8a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/gitee-sync-shell.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ git config --global user.name "sync2gitee"
pwd
git remote -v

GITHUB_REF=$1
ACTION_BRANCH=$(echo ${GITHUB_REF#refs/heads})
echo ACTION_BRANCH=$ACTION_BRANCH

git checkout $ACTION_BRANCH

# 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
sed -ie "s#https://services.gradle.org/distributions#https://mirrors.cloud.tencent.com/gradle#g" Android/APIExample/gradle/wrapper/gradle-wrapper.properties
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/gitee-sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
if: github.actor != 'dependabot[bot]'
steps:
- name: Gitee sync repo
uses: xgfd3/hub-mirror-action@v1.0
uses: xgfd3/hub-mirror-action@v1.1
with:
src: github/AgoraIO
dst: gitee/agoraio-community
Expand All @@ -25,4 +25,5 @@ jobs:
dst_token: ${{ secrets.GITEE_PRIVATE_TOKEN }}
force_update: true
account_type: org
shell_path: ./.github/workflows/gitee-sync-shell.sh
shell_path: ./.github/workflows/gitee-sync-shell.sh
shell_arg: ${{ github.ref }}

0 comments on commit a5bae8a

Please sign in to comment.