From 556b46421298b152303be23ff3c4e1748eeb4163 Mon Sep 17 00:00:00 2001 From: ZhouYixun <291028775@qq.com> Date: Mon, 5 Sep 2022 21:43:27 +0800 Subject: [PATCH] feat: try to deploy4 --- .github/workflows/release.yml | 10 ++++++++-- README.md | 4 ++-- README_CN.md | 4 ++-- pom.xml | 2 +- .../java/org/cloud/sonic/core/tool/Logger.java | 16 ++++++++++++++++ 5 files changed, 29 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index db5102c..cbc9b87 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -11,8 +11,14 @@ jobs: runs-on: ubuntu-latest steps: - - name: Checkout - uses: actions/checkout@v2 + - uses: actions/checkout@v2 + with: + fetch-depth: 0 + - name: 'Get Previous tag' + id: previoustag + uses: "WyriHaximus/github-action-get-previous-tag@v1" + - name: replace version + run: sed -i "s/SONIC_VERSION/${{ steps.previoustag.outputs.tag }}/g" pom.xml - name: Set up Maven Central Repo uses: actions/setup-java@v1 with: diff --git a/README.md b/README.md index b016af5..c2b673b 100644 --- a/README.md +++ b/README.md @@ -58,14 +58,14 @@ sonic-driver-core can be separated from appium and interact directly with webdri io.github.soniccloudorg sonic-driver-core - 1.0.12 + [1.0,2.0) ``` #### Gradle ``` -implementation 'io.github.soniccloudorg:sonic-driver-core:1.0.12' +implementation 'io.github.soniccloudorg:sonic-driver-core:[1.0,2.0)' ``` ### Code diff --git a/README_CN.md b/README_CN.md index 09cc065..ae00d5f 100644 --- a/README_CN.md +++ b/README_CN.md @@ -53,12 +53,12 @@ sonic-driver-core可以脱离Appium,直接与WebDriverAgent或UIautomator2交 io.github.soniccloudorg sonic-driver-core - 1.0.12 + [1.0,2.0) ``` #### Gradle ``` -implementation 'io.github.soniccloudorg:sonic-driver-core:1.0.12' +implementation 'io.github.soniccloudorg:sonic-driver-core:[1.0,2.0)' ``` ### 代码 diff --git a/pom.xml b/pom.xml index 8545596..26cac69 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ io.github.soniccloudorg sonic-driver-core - 1.0.15 + SONIC_VERSION sonic-driver-core The Sonic Project UIAutomation Driver Core for Android, iOS, Windows, Mac and so on. diff --git a/src/main/java/org/cloud/sonic/core/tool/Logger.java b/src/main/java/org/cloud/sonic/core/tool/Logger.java index 0c4c5ea..3a86afc 100644 --- a/src/main/java/org/cloud/sonic/core/tool/Logger.java +++ b/src/main/java/org/cloud/sonic/core/tool/Logger.java @@ -1,3 +1,19 @@ +/* + * Copyright (C) [SonicCloudOrg] Sonic Project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ package org.cloud.sonic.core.tool; import java.text.SimpleDateFormat;