Skip to content

Commit

Permalink
修改自动化提交描述
Browse files Browse the repository at this point in the history
  • Loading branch information
dango2887 committed Aug 30, 2023
1 parent c2276f7 commit 46fd3bb
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions .github/workflows/push_lib_widget.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
new_version_1=$prev_version_1
new_version_2=$prev_version_2
new_version_3=$((prev_version_3 + 1))
echo "当前版本号 Versions: $prev_version_1.$prev_version_2.$prev_version_3"
if [ $new_version_3 -gt 999 ]; then
new_version_2=$((new_version_2 + 1))
new_version_3=$((new_version_3 % 1000))
Expand Down Expand Up @@ -53,21 +53,24 @@ jobs:
ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.ORG_GRADLE_PROJECT_SIGNINGINMEMORYKEYPASSWORD }}
run: |
./gradlew :lib:widget:publish
- name: tag versionCode
- name: push versionCode
run: |
git config --global --add safe.directory /__w/DangoUnit/DangoUnit
git config --global user.email "[email protected]"
git config --global user.name "GitHub Actions"
new_tag="lib_widget_v_${{ steps.generate_version.outputs.new_version }}"
git tag $new_tag
git push origin $new_tag
- name: push versionCode
PREV_COMMIT_MESSAGE=$(git log -1 --pretty=format:%s)
NEW_COMMIT_MESSAGE="Update versionCode --> $PREV_COMMIT_MESSAGE"
git commit -am "$NEW_COMMIT_MESSAGE"
git push
- name: tag versionCode
run: |
git config --global --add safe.directory /__w/DangoUnit/DangoUnit
git config --global user.email "[email protected]"
git config --global user.name "GitHub Actions"
git commit -am "Update versionCode"
git push
new_tag="lib_widget_v_${{ steps.generate_version.outputs.new_version }}"
git tag $new_tag
git push origin $new_tag
- name: Upload
uses: actions/upload-artifact@v2
with:
Expand Down

0 comments on commit 46fd3bb

Please sign in to comment.