Skip to content

Commit

Permalink
Update create_version.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
DARKDRAGON-LK authored Apr 9, 2024
1 parent cd3f8df commit 3bf1a96
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/create_version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Update Version and README
on:
push:
branches:
- 'Issue#*'
# - 'Issue#*'
- 'master'

jobs:
Expand Down Expand Up @@ -54,8 +54,7 @@ jobs:
sed -i "s/Current Version:.*/Current Version: 3.0.0.${{ steps.current_date.outputs.date }}.${{ steps.increment_counter.outputs.counter }} (This line will be automatically updated to reflect the latest version)/" README.md
- name: Update VersionController.java
run: |
sed -i "s/private String systemVersion = \".*\";/private String systemVersion = \"3.0.0.${{ steps.current_date.outputs.date }}.${{ steps.increment_counter.outputs.counter }}\";/" src/main/java/com/divudi/bean/common/VersionController.java
run: echo "3.0.0.${{ steps.current_date.outputs.date }}.${{ steps.increment_counter.outputs.counter }}" > src/main/java/com/divudi/bean/common/VERSION.txt

- name: Set Git user name and email
run: |
Expand Down

0 comments on commit 3bf1a96

Please sign in to comment.