mirror of
https://github.com/meisnate12/Plex-Meta-Manager
synced 2024-11-24 05:23:05 +00:00
[20] Update workflow (#2137)
This commit is contained in:
parent
a55e8f7798
commit
7e7b6c2fd9
7 changed files with 42 additions and 41 deletions
61
.github/workflows/increment-build.yml
vendored
61
.github/workflows/increment-build.yml
vendored
|
@ -6,9 +6,39 @@ on:
|
|||
types: [closed]
|
||||
|
||||
jobs:
|
||||
increment-build:
|
||||
|
||||
verify-changes:
|
||||
runs-on: ubuntu-latest
|
||||
if: github.base_ref == 'nightly' && github.event.pull_request.merged
|
||||
outputs:
|
||||
build: ${{ steps.list-changes.outputs.build }}
|
||||
steps:
|
||||
|
||||
- name: Check Out Repo
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
ref: nightly
|
||||
|
||||
- name: Get changes
|
||||
id: get-changes
|
||||
run: echo "files=$(git diff --name-only HEAD^ | xargs)" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: List changed files
|
||||
id: list-changes
|
||||
run: |
|
||||
for file in ${{ steps.get-changes.outputs.files }}; do
|
||||
if [[ $file =~ ^(defaults|fonts|modules|kometa.py|requirements.txt|.dockerignore|Dockerfile).*$ ]] ; then
|
||||
echo "$file will trigger docker build"
|
||||
echo "build=true" >> $GITHUB_OUTPUT
|
||||
else
|
||||
echo "$file will not trigger docker build"
|
||||
fi
|
||||
done
|
||||
|
||||
increment-build:
|
||||
runs-on: ubuntu-latest
|
||||
needs: [ verify-changes ]
|
||||
outputs:
|
||||
version: ${{ steps.update-version.outputs.version }}
|
||||
build-value: ${{ steps.update-version.outputs.build-value }}
|
||||
|
@ -76,35 +106,6 @@ jobs:
|
|||
git commit -m "${new_msg}" --amend
|
||||
git push origin nightly --force-with-lease
|
||||
|
||||
verify-changes:
|
||||
runs-on: ubuntu-latest
|
||||
needs: [ increment-build ]
|
||||
outputs:
|
||||
build: ${{ steps.list-changes.outputs.build }}
|
||||
steps:
|
||||
|
||||
- name: Check Out Repo
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
ref: nightly
|
||||
|
||||
- name: Get changes
|
||||
id: get-changes
|
||||
run: echo "files=$(git diff --name-only HEAD^ | xargs)" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: List changed files
|
||||
id: list-changes
|
||||
run: |
|
||||
for file in ${{ steps.get-changes.outputs.files }}; do
|
||||
if [[ $file =~ ^(defaults|fonts|modules|kometa.py|requirements.txt|.dockerignore|Dockerfile).*$ ]] ; then
|
||||
echo "$file will trigger docker build"
|
||||
echo "build=true" >> $GITHUB_OUTPUT
|
||||
else
|
||||
echo "$file will not trigger docker build"
|
||||
fi
|
||||
done
|
||||
|
||||
docker-build-nightly:
|
||||
runs-on: ubuntu-latest
|
||||
needs: [ increment-build, verify-changes ]
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
# Requirements Update (requirements will need to be reinstalled)
|
||||
Added tenacity requirement at 8.4.1
|
||||
Added tenacity requirement at 8.4.2
|
||||
Update PlexAPI requirement to 4.15.14
|
||||
Update psutil requirement to 6.0.0
|
||||
Update setuptools requirement to 70.1.0
|
||||
|
||||
# Removed Features
|
||||
|
||||
|
|
2
VERSION
2
VERSION
|
@ -1 +1 @@
|
|||
2.0.2-build19
|
||||
2.0.2-build20
|
||||
|
|
|
@ -17,10 +17,6 @@ external_templates:
|
|||
templates:
|
||||
letterboxd_list:
|
||||
letterboxd_list: https://letterboxd.com/<<user>>/list/<<list>>
|
||||
default:
|
||||
cache_builders: 1
|
||||
cache_builders_<<key>>: <<cache_builders>>
|
||||
cache_builders: <<cache_builders_<<key>>>>
|
||||
|
||||
collections:
|
||||
"Letterboxd Top 250":
|
||||
|
|
|
@ -292,9 +292,10 @@ templates:
|
|||
collection_order: custom
|
||||
collection_order_<<key>>: <<collection_order>>
|
||||
cache_builders: 1
|
||||
cache_builders_<<key>>: <<cache_builders>>
|
||||
collection_order: <<collection_order_<<key>>>>
|
||||
sync_mode: <<sync_mode_<<key>>>>
|
||||
cache_builders: <<cache_builders>>
|
||||
cache_builders: <<cache_builders_<<key>>>>
|
||||
|
||||
other_collection:
|
||||
default:
|
||||
|
|
|
@ -66,7 +66,8 @@ work. Any value not specified will use its default value if it has one if not it
|
|||
| `sync_mode_<<key>>`<sup>1</sup> | **Description:** Changes the Sync Mode of the specified key's collection.<br>**Default:** `sync_mode`<br>**Values:**<table class="clearTable"><tr><td>`sync`</td><td>Add and Remove Items based on Builders</td></tr><tr><td>`append`</td><td>Only Add Items based on Builders</td></tr></table> |
|
||||
| `collection_order` | **Description:** Changes the Collection Order for all collections in a Defaults file.<br>**Default:** `custom`<br>**Values:**<table class="clearTable"><tr><td>`release`</td><td>Order Collection by Release Dates</td></tr><tr><td>`alpha`</td><td>Order Collection Alphabetically</td></tr><tr><td>`custom`</td><td>Order Collection Via the Builder Order</td></tr><tr><td>[Any `plex_search` Sort Option](../../files/builders/plex.md#sort-options)</td><td>Order Collection by any `plex_search` Sort Option</td></tr></table> |
|
||||
| `collection_order_<<key>>`<sup>1</sup> | **Description:** Changes the Collection Order of the specified key's collection.<br>**Default:** `collection_order`<br>**Values:**<table class="clearTable"><tr><td>`release`</td><td>Order Collection by Release Dates</td></tr><tr><td>`alpha`</td><td>Order Collection Alphabetically</td></tr><tr><td>`custom`</td><td>Order Collection Via the Builder Order</td></tr><tr><td>[Any `plex_search` Sort Option](../../files/builders/plex.md#sort-options)</td><td>Order Collection by any `plex_search` Sort Option</td></tr></table> |
|
||||
| `cache_builders_<<key>>` | **Description:** Changes the Builder Cache of the specified key's collection.<br>**Default:** `1`<br>**Values:** number 0 or greater |
|
||||
| `cache_builders` | **Description:** Changes the Builder Cache for all collections in a Defaults file.<br>**Default:** `1`<br>**Values:** number 0 or greater |
|
||||
| `cache_builders_<<key>>` | **Description:** Changes the Builder Cache of the specified key's collection.<br>**Default:** `1`<br>**Values:** number 0 or greater |
|
||||
|
||||
1. Each default collection has a `key` that when calling to effect a specific collection you must replace
|
||||
`<<key>>` with when calling.
|
||||
|
|
|
@ -4,13 +4,13 @@ lxml==5.2.2
|
|||
num2words==0.5.13
|
||||
pathvalidate==3.2.0
|
||||
pillow==10.3.0
|
||||
PlexAPI==4.15.13
|
||||
PlexAPI==4.15.14
|
||||
psutil==6.0.0
|
||||
python-dotenv==1.0.1
|
||||
python-dateutil==2.9.0.post0
|
||||
requests==2.32.3
|
||||
tenacity==8.4.1
|
||||
tenacity==8.4.2
|
||||
ruamel.yaml==0.18.6
|
||||
schedule==1.2.2
|
||||
setuptools==70.0.0
|
||||
setuptools==70.1.0
|
||||
tmdbapis==1.2.16
|
Loading…
Reference in a new issue