Skip to content

Commit

Permalink
feat: Config
Browse files Browse the repository at this point in the history
  • Loading branch information
dango2887 committed Aug 23, 2023
1 parent 5444f81 commit 1162e18
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/push_lib_widget.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,22 @@ on:
paths:
- '**'
jobs:
prepare:
runs-on: ubuntu-latest

container:
image: registry.cn-shanghai.aliyuncs.com/dango/android_ci:latest # 指定您的自定义 Docker 镜像及其标签
options: --platform linux/amd64
steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Generate New Version Code
uses: |
# Generate a new version code based on the previous one
prev_version=$(grep "versionCode" app/build.gradle | grep -o '[0-9]\+')
new_version=$((prev_version + 1))
echo "::set-output name=new_version::$new_version"
build:
runs-on: ubuntu-latest

Expand Down

0 comments on commit 1162e18

Please sign in to comment.