Skip to content

Commit

Permalink
Merge pull request #42 from r-Norge/fix_bump_tags
Browse files Browse the repository at this point in the history
Fix bot version path in build.yml
  • Loading branch information
Ev-1 authored May 30, 2022
2 parents a1ea0b6 + a08a155 commit e136858
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,18 +64,18 @@ jobs:
if: github.ref == 'refs/heads/master'
id: tagger
run: |
version=$(grep -i bot_version musicbot/cogs/utils/bot_version.py | cut -d" " -f3 | tr -d \")
version=$(grep -i bot_version musicbot/utils/bot_version.py | cut -d" " -f3 | tr -d \")
a=(${version//./ })
((a[2]++))
new_version=$(echo "${a[0]}.${a[1]}.${a[2]}")
sed -i "s/${version}/${new_version}/g" musicbot/cogs/utils/bot_version.py
sed -i "s/${version}/${new_version}/g" musicbot/utils/bot_version.py
echo "::set-output name=tag::${new_version}"
- name: Push changed files, and tags
if: github.ref == 'refs/heads/master'
uses: EndBug/add-and-commit@v4
with:
add: musicbot/cogs/utils/bot_version.py
add: musicbot/utils/bot_version.py
author_name: MarlinBotCode
message: Bump Version
tag: v${{ steps.tagger.outputs.tag }}
Expand Down

0 comments on commit e136858

Please sign in to comment.