From a08a15525275d1fa6b78064e326abfd83296f080 Mon Sep 17 00:00:00 2001 From: Ev-1 <33662061+Ev-1@users.noreply.github.com> Date: Mon, 30 May 2022 19:15:33 +0200 Subject: [PATCH] Fix bot version path in build.yml --- .github/workflows/build.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d100b61..031a978 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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 }}