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

Commit

Permalink
Merge pull request #117 from exexute/main
Browse files Browse the repository at this point in the history
Fix: add version update shell
  • Loading branch information
exexute authored Dec 20, 2021
2 parents 34982c5 + 5e3e02e commit 6919b13
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/release_engine.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ jobs:
- name: Generate version file
run: |
bash .github/workflows/version_update.sh "${{ steps.release.outputs.VERSION }}"
cd ${{ github.workspace }} && \
echo "${{ github.event.repository.name }},version,${{ steps.release.outputs.VERSION }}" >> version.txt && \
echo "${{ github.event.repository.name }},commit_hash,${GITHUB_SHA}" >> version.txt \
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/version_update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ NEW_VERSION=$1

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

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

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

0 comments on commit 6919b13

Please sign in to comment.