Skip to content
This repository was archived by the owner on Apr 20, 2022. It is now read-only.

Commit 6919b13

Browse files
authored
Merge pull request #117 from exexute/main
Fix: add version update shell
2 parents 34982c5 + 5e3e02e commit 6919b13

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.github/workflows/release_engine.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ jobs:
4444
4545
- name: Generate version file
4646
run: |
47+
bash .github/workflows/version_update.sh "${{ steps.release.outputs.VERSION }}"
4748
cd ${{ github.workspace }} && \
4849
echo "${{ github.event.repository.name }},version,${{ steps.release.outputs.VERSION }}" >> version.txt && \
4950
echo "${{ github.event.repository.name }},commit_hash,${GITHUB_SHA}" >> version.txt \

.github/workflows/version_update.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ NEW_VERSION=$1
22

33
echo "curent path: $(pwd), change version to $NEW_VERSION"
44

5-
git config --global user.name 'exexute'
6-
git config --global user.email '[email protected]'
5+
git config --global user.name "$GITHUB_ACTOR"
6+
git config --global user.email "$GITHUB_ACTOR@bot.noreplay.dongtai.io"
77
git checkout -b "release-$NEW_VERSION"
88

99
sed -i "" "s/:latest/:$NEW_VERSION/g" README.MD

0 commit comments

Comments
 (0)