Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/CD_dev-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ jobs:
git config user.email github-actions@github.com
git fetch origin

git checkout master-ci
git pull -X theirs origin master-ci
git checkout dev-release
git reset --hard origin/master-ci

rm -rf LICENSE
rm -rf README.md
Expand All @@ -94,5 +94,5 @@ jobs:

git add .

git diff-index --quiet HEAD || git commit -m "Sanitize dev-release"
git commit -m "Sanitize dev-release"
git push origin dev-release --force
4 changes: 2 additions & 2 deletions openpod/updater.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,12 @@ def update_pod():

# Extract the zip file.
with zipfile.ZipFile(f"{latest_version['hash']}.zip", 'r') as zip_ref:
zip_ref.extractall(f"{latest_version['hash']}/")
zip_ref.extractall()

# Copy the files to the root directory.
os.makedirs(f"/opt/OpenPod/versions/{latest_version['hash']}/", exist_ok=True)
shutil.move(
f"{latest_version['hash']}/OpenPod-{latest_version['hash']}/",
f"OpenPod-{latest_version['hash']}/OpenPod-{latest_version['hash']}/OpenPod/",
f"/opt/OpenPod/versions/{latest_version['hash']}/"
)

Expand Down