Skip to content

Commit

Permalink
updated workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
ThePromidius committed Feb 28, 2024
1 parent 72800ea commit 7c74247
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/Run_Tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion update_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 7c74247

Please sign in to comment.