Skip to content

Commit

Permalink
feat: Config
Browse files Browse the repository at this point in the history
  • Loading branch information
dango2887 committed Aug 30, 2023
1 parent 75c1204 commit 489281a
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/push_lib_widget.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: check
run: |
prev_version_1=$(grep "VERSION_NAME=" gradle.properties | sed -E 's/VERSION_NAME=([0-9]+)\.[0-9]+\.[0-9]+/\1/')
prev_version_2=$(grep "VERSION_NAME=" gradle.properties | sed -E 's/VERSION_NAME=[0-9]+\.([0-9]+)\.[0-9]+/\1/')
prev_version_3=$(grep "VERSION_NAME=" gradle.properties | sed -E 's/VERSION_NAME=[0-9]+\.[0-9]+\.([0-9]+)/\1/')
echo "Formatted Versions: $prev_version_1, $prev_version_2, $prev_version_3"
- name: 检查当前版本
id: generate_version
run: |
Expand All @@ -23,13 +29,6 @@ jobs:
formatted_version=$(printf "%04d" "$new_version")
echo "$formatted_version"
echo "new_version=$formatted_version" >> $GITHUB_OUTPUT
prev_version_1=$(grep "VERSION_NAME=" gradle.properties | sed -E 's/VERSION_NAME=([0-9]+)\.[0-9]+\.[0-9]+/\1/')
prev_version_2=$(grep "VERSION_NAME=" gradle.properties | sed -E 's/VERSION_NAME=[0-9]+\.([0-9]+)\.[0-9]+/\1/')
prev_version_3=$(grep "VERSION_NAME=" gradle.properties | sed -E 's/VERSION_NAME=[0-9]+\.[0-9]+\.([0-9]+)/\1/')
echo "Formatted Versions: $prev_version_1, $prev_version_2, $prev_version_3"
- name: 之前保存的版本号
run: |
echo "new_version = ${{ steps.generate_version.outputs.new_version }}"
Expand Down

0 comments on commit 489281a

Please sign in to comment.