Skip to content

Commit 6ec37d7

Browse files
committed
Revert "修改snapshot版本号脚本和工作流"
This reverts commit d75b63f. Reason for revert: <revert this> Change-Id: I4bec4fa5dacf4c815847b0de32ec825ef9eca2ea
1 parent 6f50a89 commit 6ec37d7

File tree

2 files changed

+1
-14
lines changed

2 files changed

+1
-14
lines changed

.github/scripts/updateVersionCodeForSnapshot.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
#!/bin/bash
22

3-
latest_tag=$LATEST_OTHER_TAG
4-
53
# 最新tag,例如:v1.0.0
64
latest_tag=$(git describe --tags `git rev-list --tags --max-count=1`)
75
echo ">>>latest tag: $latest_tag"

.github/workflows/debug.yml

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -75,19 +75,8 @@ jobs:
7575
- name: Setup NDK
7676
# if: steps.ndk-cache.outputs.cache-hit != 'true'
7777
run: echo "y" | sudo ${ANDROID_HOME}/tools/bin/sdkmanager --install "ndk;22.0.7026061"
78-
- name: Fix App Version
79-
run: |
80-
rb=$(echo "${{ github.ref }}" | sed -e 's,.*/\(.*\),\1,')
81-
rc=$(git rev-parse --short HEAD)
82-
video_tag=$(git describe --tags --match "*video*" --abbrev=0 HEAD)
83-
other_tag=$(git describe --tags --match "v[0-9].[0-9].[0-9]" --abbrev=0 HEAD)
84-
echo "latest_video_tag=$video_tag" >> $GITHUB_ENV
85-
echo "latest_other_tag=$other_tag" >> $GITHUB_ENV
8678
- name: Update SDK Version
87-
run: |
88-
export LATEST_VIDEO_TAG=${{env.latest_video_tag}}
89-
export LATEST_OTHER_TAG=${{env.latest_other_tag}}
90-
bash .github/scripts/updateVersionCodeForSnapshot.sh
79+
run: bash .github/scripts/updateVersionCodeForSnapshot.sh
9180
# - name: Test with Gradle
9281
# run: ./gradlew test
9382
- name: Build with Gradle

0 commit comments

Comments
 (0)