Skip to content

Commit

Permalink
rename core location
Browse files Browse the repository at this point in the history
  • Loading branch information
Mon-ius committed Sep 11, 2023
1 parent 542fd79 commit 9b3e6c3
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/bot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name: bot
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CARGO_TERM_COLOR: always
CARGO_LOCA: "kingsbur-core/Cargo.toml"

on:
workflow_call:
Expand All @@ -29,7 +30,7 @@ jobs:
-
id: cargo_previous
run: |
previous=$(awk -F ' = ' '$1 ~ /version/ { gsub(/["]/, "", $2); printf("%s",$2) }' core/Cargo.toml)
previous=$(awk -F ' = ' '$1 ~ /version/ { gsub(/["]/, "", $2); printf("%s",$2) }' $CARGO_LOCA)
echo version=$previous >> $GITHUB_OUTPUT
name: Parse Previous Version
shell: bash
Expand All @@ -53,10 +54,10 @@ jobs:
-
id: cargo_update
run: |
sed -i "s/version = \"$PV\"/version = \"$CV\"/" core/Cargo.toml
sed -i "s/version = \"$PV\"/version = \"$CV\"/" $CARGO_LOCA
git config --global user.email "[email protected]"
git config --global user.name "Bot"
git add core/Cargo.toml
git add $CARGO_LOCA
git commit -m "auto increment version from [bot]"
git push
name: Update Version
Expand Down

0 comments on commit 9b3e6c3

Please sign in to comment.