diff --git a/.github/workflows/code_format.yml b/.github/workflows/code_format.yml
index b30e9df518..0cd5dba700 100644
--- a/.github/workflows/code_format.yml
+++ b/.github/workflows/code_format.yml
@@ -24,3 +24,6 @@ jobs:
chmod +x codeformat.sh
./codeformat.sh
shell: bash
+ - uses: stefanzweifel/git-auto-commit-action@v4
+ with:
+ commit_message: Apply code format changes
diff --git a/README.md b/README.md
index 04708fb3fc..9a81483225 100644
--- a/README.md
+++ b/README.md
@@ -1,6 +1,10 @@
-[![license](https://img.shields.io/badge/license-Apache%202-blue)](https://github.com/Tencent/libpag/blob/master/LICENSE.txt) [![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](https://github.com/Tencent/libpag/pulls) [![GitHub release (latest SemVer)](https://img.shields.io/github/v/release/Tencent/libpag)](https://github.com/Tencent/libpag/releases)
+[![license](https://img.shields.io/badge/license-Apache%202-blue)](https://github.com/Tencent/libpag/blob/master/LICENSE.txt)
+[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](https://github.com/Tencent/libpag/pulls)
+[![codecov](https://codecov.io/gh/Tencent/libpag/branch/main/graph/badge.svg)](https://codecov.io/gh/Tencent/libpag)
+[![Actions Status](https://github.com/Tencent/libpag/workflows/autotest/badge.svg?branch=main)](https://github.com/Tencent/libpag/actions)
+[![GitHub release (latest SemVer)](https://img.shields.io/github/v/release/Tencent/libpag)](https://github.com/Tencent/libpag/releases)
English | [简体中文](./README.zh_CN.md) | [Homepage](https://pag.io)
@@ -96,12 +100,12 @@ After installing the cocoapod into your project import libpag with
You can use the aar downloaded from the release page, or add libpag to your project by Maven:
-Edit the `build.gradle` file in the root of your project, add `jcenter()` to `repositories`:
+Edit the `build.gradle` file in the root of your project, add `mavenCentral()` to `repositories`:
```
buildscript {
repositories {
- jcenter()
+ mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.2.1'
diff --git a/README.zh_CN.md b/README.zh_CN.md
index 44260a457a..41c296ef6c 100644
--- a/README.zh_CN.md
+++ b/README.zh_CN.md
@@ -1,6 +1,10 @@
-[![license](https://img.shields.io/badge/license-Apache%202-blue)](https://github.com/tencent/libpag/blob/master/LICENSE.txt) [![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](https://github.com/tencent/libpag/pulls) [![GitHub release (latest SemVer)](https://img.shields.io/github/v/release/tencent/libpag)](https://github.com/tencent/libpag/releases)
+[![license](https://img.shields.io/badge/license-Apache%202-blue)](https://github.com/Tencent/libpag/blob/master/LICENSE.txt)
+[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](https://github.com/Tencent/libpag/pulls)
+[![codecov](https://codecov.io/gh/Tencent/libpag/branch/main/graph/badge.svg)](https://codecov.io/gh/Tencent/libpag)
+[![Actions Status](https://github.com/Tencent/libpag/workflows/autotest/badge.svg?branch=main)](https://github.com/Tencent/libpag/actions)
+[![GitHub release (latest SemVer)](https://img.shields.io/github/v/release/Tencent/libpag)](https://github.com/Tencent/libpag/releases)
[English](./README.md) | 简体中文 | [官网](https://pag.io)
| [QQ群:893379574](https://qm.qq.com/cgi-bin/qm/qr?k=Wa65DTnEKo2hnPsvY-1EgJOF8tvKQ-ZT&jump_from=webapi)
diff --git a/codeformat.sh b/codeformat.sh
index ef4b07b681..aa9b41e74a 100755
--- a/codeformat.sh
+++ b/codeformat.sh
@@ -9,14 +9,5 @@ find src -name "*.cpp" -print -o -name "*.h" -print -o -name "*.mm" -print -o
# shellcheck disable=SC2038
find test \( -path test/framework/lzma \) -prune -o -name "*.cpp" -print -o -name "*.h" -print | xargs clang-format -i
-git diff
-result=`git diff`
-if [[ $result =~ "diff" ]]
-then
- echo "----Failed----"
- exit 1
-else
- echo "----Success----"
-fi
echo "----Complete the scan code format-----"