Skip to content

Commit

Permalink
Update test.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
PikuZheng authored Aug 22, 2022
1 parent 58d418a commit 6d2f1f5
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -127,13 +127,14 @@ jobs:
- name: update version
run: |
#更新当前版本号
pre_version=$(cat version_control/VERSION | grep "PREFEX" | sed 's/PREFEX=\(.*\)/\1/')
cur_version=$(cat version_control/VERSION | grep "CUR_VERS" | sed 's/CUR_VERS=\(.*\)/\1/')
cd version_control
pre_version=$(cat VERSION | grep "PREFEX" | sed 's/PREFEX=\(.*\)/\1/')
cur_version=$(cat VERSION | grep "CUR_VERS" | sed 's/CUR_VERS=\(.*\)/\1/')
cur_version=$(($cur_version + 1))
sed -i "s/CUR_VERS=.*/CUR_VERS=$cur_version/" version_control/VERSION
sed -i "s/CUR_VERS=.*/CUR_VERS=$cur_version/" VERSION
git config --local user.email "[email protected]"
git config --local user.name "PikuZheng"
git add version_control/VERSION
git add VERSION
git commit -m "generate new post from github action" -a
- name: push changes
uses: ad-m/github-push-action@master
Expand Down

0 comments on commit 6d2f1f5

Please sign in to comment.