[32] adjust PRs

pull/1746/head
meisnate12 1 year ago
parent b5b8a32b0e
commit ef3c65f877

@ -17,10 +17,6 @@ jobs:
with: with:
ref: develop ref: develop
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub - name: Login to Docker Hub
uses: docker/login-action@v3 uses: docker/login-action@v3
with: with:
@ -32,6 +28,10 @@ jobs:
with: with:
platforms: all platforms: all
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v3
- name: Build and push - name: Build and push
id: docker_build id: docker_build
uses: docker/build-push-action@v5 uses: docker/build-push-action@v5

@ -13,10 +13,6 @@ jobs:
- name: Check Out Repo - name: Check Out Repo
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub - name: Login to Docker Hub
uses: docker/login-action@v3 uses: docker/login-action@v3
with: with:
@ -28,6 +24,10 @@ jobs:
with: with:
platforms: all platforms: all
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v3
- name: Build and push - name: Build and push
id: docker_build id: docker_build
uses: docker/build-push-action@v5 uses: docker/build-push-action@v5

@ -17,10 +17,6 @@ jobs:
with: with:
ref: nightly ref: nightly
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub - name: Login to Docker Hub
uses: docker/login-action@v3 uses: docker/login-action@v3
with: with:
@ -32,6 +28,10 @@ jobs:
with: with:
platforms: all platforms: all
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v3
- name: Build and push - name: Build and push
id: docker_build id: docker_build
uses: docker/build-push-action@v5 uses: docker/build-push-action@v5

@ -45,6 +45,8 @@ jobs:
platforms: linux/amd64,linux/arm64,linux/arm/v7 platforms: linux/amd64,linux/arm64,linux/arm/v7
push: true push: true
tags: ${{ secrets.DOCKER_HUB_USERNAME }}/plex-meta-manager:${{ steps.get_version.outputs.VERSION }} tags: ${{ secrets.DOCKER_HUB_USERNAME }}/plex-meta-manager:${{ steps.get_version.outputs.VERSION }}
cache-from: type=gha
cache-to: type=gha,mode=max
- name: Discord Success Notification - name: Discord Success Notification
uses: meisnate12/discord-notifications@master uses: meisnate12/discord-notifications@master

@ -1 +1 @@
1.19.1-develop31 1.19.1-develop32

@ -237,20 +237,11 @@ def start(attrs):
new_version = latest_version[0] if latest_version and (version[1] != latest_version[1] or (version[2] and version[2] < latest_version[2])) else None new_version = latest_version[0] if latest_version and (version[1] != latest_version[1] or (version[2] and version[2] < latest_version[2])) else None
if new_version: if new_version:
logger.info(f" Newest Version: {new_version}") logger.info(f" Newest Version: {new_version}")
def get_required_plexapi_version(): with open("requirements.txt", "r") as file:
with open('requirements.txt', 'r') as file: required_version = next(l.strip()[9:] for l in file.readlines() if l.strip().startswith("PlexAPI=="))
lines = file.readlines() logger.info(f" PlexAPI Version: {plexapi.VERSION}")
for line in lines: if required_version != plexapi.VERSION:
if line.strip().startswith('PlexAPI=='): logger.info(f" PlexAPI Requires an Update to Version: {required_version}")
return line.strip().split('==')[1]
return None
required_version = get_required_plexapi_version()
if required_version == plexapi.VERSION:
logger.info(f" PlexAPI library version: {plexapi.VERSION}")
else:
logger.info(f" PlexAPI library version: {plexapi.VERSION} (Required Version: {required_version})")
logger.info(f" Platform: {platform.platform()}") logger.info(f" Platform: {platform.platform()}")
logger.info(f" Memory: {round(psutil.virtual_memory().total / (1024.0 ** 3))} GB") logger.info(f" Memory: {round(psutil.virtual_memory().total / (1024.0 ** 3))} GB")
if "time" in attrs and attrs["time"]: start_type = f"{attrs['time']} " if "time" in attrs and attrs["time"]: start_type = f"{attrs['time']} "

Loading…
Cancel
Save