mirror of
https://github.com/meisnate12/Plex-Meta-Manager
synced 2024-11-26 06:20:23 +00:00
[12] update workflows
This commit is contained in:
parent
16b3480112
commit
185bda010f
8 changed files with 81 additions and 11 deletions
19
.github/workflows/develop.yml
vendored
19
.github/workflows/develop.yml
vendored
|
@ -10,7 +10,6 @@ jobs:
|
|||
|
||||
docker-develop:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
|
||||
- name: Check Out Repo
|
||||
|
@ -43,9 +42,23 @@ jobs:
|
|||
push: true
|
||||
tags: ${{ secrets.DOCKER_HUB_USERNAME }}/plex-meta-manager:develop
|
||||
|
||||
- name: Discord Notification
|
||||
- name: Discord Success Notification
|
||||
uses: sarisia/actions-status-discord@v1
|
||||
if: success()
|
||||
with:
|
||||
webhook: ${{ secrets.DISCORD_WEBHOOK }}
|
||||
nodetail: true
|
||||
title: Develop Docker Build Finished
|
||||
title: "Develop Docker Build: **Success**"
|
||||
username: Docker
|
||||
avatar_url: https://www.docker.com/sites/default/files/d8/2019-07/Moby-logo.png
|
||||
|
||||
- name: Discord Failure Notification
|
||||
uses: sarisia/actions-status-discord@v1
|
||||
if: failure()
|
||||
with:
|
||||
webhook: ${{ secrets.DISCORD_WEBHOOK }}
|
||||
nodetail: true
|
||||
title: "Develop Docker Build: **Failure**"
|
||||
color: 0xe30c43
|
||||
username: Docker
|
||||
avatar_url: https://www.docker.com/sites/default/files/d8/2019-07/Moby-logo.png
|
||||
|
|
19
.github/workflows/latest.yml
vendored
19
.github/workflows/latest.yml
vendored
|
@ -8,7 +8,6 @@ jobs:
|
|||
|
||||
docker-latest:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
|
||||
- name: Check Out Repo
|
||||
|
@ -39,9 +38,23 @@ jobs:
|
|||
push: true
|
||||
tags: ${{ secrets.DOCKER_HUB_USERNAME }}/plex-meta-manager:latest
|
||||
|
||||
- name: Discord Notification
|
||||
- name: Discord Success Notification
|
||||
uses: sarisia/actions-status-discord@v1
|
||||
if: success()
|
||||
with:
|
||||
webhook: ${{ secrets.DISCORD_WEBHOOK }}
|
||||
nodetail: true
|
||||
title: Latest Docker Build Finished
|
||||
title: "Latest Docker Build: **Success**"
|
||||
username: Docker
|
||||
avatar_url: https://www.docker.com/sites/default/files/d8/2019-07/Moby-logo.png
|
||||
|
||||
- name: Discord Failure Notification
|
||||
uses: sarisia/actions-status-discord@v1
|
||||
if: failure()
|
||||
with:
|
||||
webhook: ${{ secrets.DISCORD_WEBHOOK }}
|
||||
nodetail: true
|
||||
title: "Latest Docker Build: **Failure**"
|
||||
color: 0xe30c43
|
||||
username: Docker
|
||||
avatar_url: https://www.docker.com/sites/default/files/d8/2019-07/Moby-logo.png
|
3
.github/workflows/nightly.yml
vendored
3
.github/workflows/nightly.yml
vendored
|
@ -10,7 +10,6 @@ jobs:
|
|||
|
||||
docker-nightly:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
|
||||
- name: Check Out Repo
|
||||
|
@ -59,7 +58,7 @@ jobs:
|
|||
with:
|
||||
webhook: ${{ secrets.DISCORD_WEBHOOK }}
|
||||
nodetail: true
|
||||
title: "Nightly Docker Build: **Failed**"
|
||||
title: "Nightly Docker Build: **Failure**"
|
||||
color: 0xe30c43
|
||||
username: Docker
|
||||
avatar_url: https://www.docker.com/sites/default/files/d8/2019-07/Moby-logo.png
|
||||
|
|
21
.github/workflows/release.yml
vendored
Normal file
21
.github/workflows/release.yml
vendored
Normal file
|
@ -0,0 +1,21 @@
|
|||
name: Release
|
||||
|
||||
on:
|
||||
release:
|
||||
types: [ published ]
|
||||
|
||||
jobs:
|
||||
|
||||
release:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
|
||||
- name: Check Out Repo
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Send Discord Release Notification
|
||||
uses: bythope/discord-webhook-messages@v1.1.0
|
||||
with:
|
||||
webhookUrl: ${{ secrets.RELEASE_WEBHOOK }}
|
||||
handler: 'release'
|
3
.github/workflows/tag.yml
vendored
3
.github/workflows/tag.yml
vendored
|
@ -5,13 +5,16 @@ on:
|
|||
branches: [ master ]
|
||||
|
||||
jobs:
|
||||
|
||||
tag-new-versions:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
token: ${{ secrets.PAT }}
|
||||
fetch-depth: 2
|
||||
|
||||
- uses: salsify/action-detect-and-tag-new-version@v1.0.3
|
||||
with:
|
||||
version-command: |
|
||||
|
|
21
.github/workflows/version.yml
vendored
21
.github/workflows/version.yml
vendored
|
@ -43,3 +43,24 @@ jobs:
|
|||
platforms: linux/amd64,linux/arm64
|
||||
push: true
|
||||
tags: ${{ secrets.DOCKER_HUB_USERNAME }}/plex-meta-manager:${{ steps.get_version.outputs.VERSION }}
|
||||
|
||||
- name: Discord Success Notification
|
||||
uses: sarisia/actions-status-discord@v1
|
||||
if: success()
|
||||
with:
|
||||
webhook: ${{ secrets.DISCORD_WEBHOOK }}
|
||||
nodetail: true
|
||||
title: "${{ steps.get_version.outputs.VERSION }} Docker Build: **Success**"
|
||||
username: Docker
|
||||
avatar_url: https://www.docker.com/sites/default/files/d8/2019-07/Moby-logo.png
|
||||
|
||||
- name: Discord Failure Notification
|
||||
uses: sarisia/actions-status-discord@v1
|
||||
if: failure()
|
||||
with:
|
||||
webhook: ${{ secrets.DISCORD_WEBHOOK }}
|
||||
nodetail: true
|
||||
title: "${{ steps.get_version.outputs.VERSION }} Docker Build: **Failure**"
|
||||
color: 0xe30c43
|
||||
username: Docker
|
||||
avatar_url: https://www.docker.com/sites/default/files/d8/2019-07/Moby-logo.png
|
||||
|
|
2
VERSION
2
VERSION
|
@ -1 +1 @@
|
|||
1.16.0-develop11
|
||||
1.16.0-develop12
|
||||
|
|
|
@ -282,7 +282,7 @@ class MetadataFile(DataFile):
|
|||
for i, item in enumerate(all_items, 1):
|
||||
logger.ghost(f"Processing: {i}/{len(all_items)} {item.title}")
|
||||
tmdb_id, tvdb_id, imdb_id = library.get_ids(item)
|
||||
tmdb_item = config.TMDb.get_item(item, tmdb_id, tvdb_id, imdb_id, is_movie=library.type == "Movie")
|
||||
tmdb_item = config.TMDb.get_item(item, tmdb_id, tvdb_id, imdb_id, is_movie=True)
|
||||
if tmdb_item and tmdb_item.collection and tmdb_item.collection.id not in exclude and tmdb_item.collection.name not in exclude:
|
||||
auto_list[tmdb_item.collection.id] = tmdb_item.collection.name
|
||||
logger.exorcise()
|
||||
|
@ -292,7 +292,7 @@ class MetadataFile(DataFile):
|
|||
for i, item in enumerate(all_items, 1):
|
||||
logger.ghost(f"Processing: {i}/{len(all_items)} {item.title}")
|
||||
tmdb_id, tvdb_id, imdb_id = library.get_ids(item)
|
||||
tmdb_item = config.TMDb.get_item(item, tmdb_id, tvdb_id, imdb_id, is_movie=True)
|
||||
tmdb_item = config.TMDb.get_item(item, tmdb_id, tvdb_id, imdb_id, is_movie=library.type == "Movie")
|
||||
if tmdb_item and tmdb_item.original_language and tmdb_item.original_language.iso_639_1 not in exclude and tmdb_item.original_language.english_name not in exclude:
|
||||
auto_list[tmdb_item.original_language.iso_639_1] = tmdb_item.original_language.english_name
|
||||
logger.exorcise()
|
||||
|
|
Loading…
Reference in a new issue