diff --git a/.github/workflows/Run_Tests.yml b/.github/workflows/Run_Tests.yml index a385d861..e216d6b3 100644 --- a/.github/workflows/Run_Tests.yml +++ b/.github/workflows/Run_Tests.yml @@ -112,9 +112,9 @@ jobs: - name: Replace "nightly" with commit hash run: | - file_contents=$(head -n 1 MangaManager/src/__version__.py) + file_contents=$(head -n 1 src/MangaManager/__version__.py) new_contents="${file_contents/nightly/nightly:${{ needs.parse_versions.outputs.latest_commit }}}" - echo "$new_contents" > MangaManager/src/__version__.py + echo "$new_contents" > src/MangaManager/__version__.py - name: Set up QEMU uses: docker/setup-qemu-action@v2 @@ -147,9 +147,9 @@ jobs: - name: Replace "nightly" with commit hash run: | - file_contents=$(head -n 1 MangaManager/src/__version__.py) + file_contents=$(head -n 1 src/MangaManager/__version__.py) new_contents="${file_contents/nightly/nightly:${{ needs.parse_versions.outputs.latest_commit }}}" - echo "$new_contents" > MangaManager/src/__version__.py + echo "$new_contents" > src/MangaManager/__version__.py - name: Set up QEMU uses: docker/setup-qemu-action@v2 diff --git a/update_version.py b/update_version.py index 993bc670..e966e1c3 100644 --- a/update_version.py +++ b/update_version.py @@ -26,7 +26,7 @@ def update_version_file(): version_file.write(new_version) repo = git.Repo(Path(__file__).parent) - repo.git.add("MangaManager/src/__version__.py") + repo.git.add("src/MangaManager/__version__.py") commit = repo.git.commit(m="Bump version hash") # ref = os.popen("git rev-parse --short HEAD").read().strip() repo.create_tag(tag + "_" + new_hash)