mirror of
https://github.com/meisnate12/Plex-Meta-Manager
synced 2024-11-21 12:03:09 +00:00
[7] Update github build action
This commit is contained in:
parent
bc475e9c66
commit
822b9fe85c
3 changed files with 49 additions and 13 deletions
|
@ -4,16 +4,23 @@
|
|||
**/__pycache__
|
||||
/.vscode
|
||||
**/log
|
||||
README.md
|
||||
LICENSE
|
||||
.gitignore
|
||||
.dockerignore
|
||||
*.psd
|
||||
.git
|
||||
.github
|
||||
*.psd
|
||||
config/**/*
|
||||
config
|
||||
Dockerfile
|
||||
venv
|
||||
.idea
|
||||
config
|
||||
config/**/*
|
||||
docs
|
||||
json-schema
|
||||
venv
|
||||
.dockerignore
|
||||
.gitignore
|
||||
.readthedocs.yml
|
||||
.spellcheck.yml
|
||||
CHANGELOG
|
||||
Dockerfile
|
||||
Dockerfile.lxml
|
||||
LICENSE
|
||||
mkdocs.yml
|
||||
README.md
|
||||
test.py
|
35
.github/workflows/nightly.yml
vendored
35
.github/workflows/nightly.yml
vendored
|
@ -6,8 +6,37 @@ on:
|
|||
|
||||
jobs:
|
||||
|
||||
docker:
|
||||
verify-changes:
|
||||
runs-on: ubuntu-latest
|
||||
outputs:
|
||||
build: ${{ steps.list-changes.outputs.build }}
|
||||
steps:
|
||||
|
||||
- name: Check Out Repo
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Get changes
|
||||
id: get-changes
|
||||
run: echo "files=$(git diff --name-only ${{ github.event.before }} ${{ github.event.after }} | xargs)" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: List changed files
|
||||
id: list-changes
|
||||
run: |
|
||||
for file in ${{ steps.get-changes.outputs.files }}; do
|
||||
if [[ $file == defaults/* ]] || [[ $file == fonts/* ]] || [[ $file == modules/* ]] || [[ $file == kometa.py ]] || [[ $file == requirements.txt ]] || [[ $file == .dockerignore ]] || [[ $file == Dockerfile ]] || [[ $file == Dockerfile.lxml ]] ; then
|
||||
echo "$file will trigger docker build"
|
||||
echo "build=true" >> $GITHUB_OUTPUT
|
||||
else
|
||||
echo "$file will not trigger docker build"
|
||||
fi
|
||||
done
|
||||
|
||||
docker:
|
||||
needs: [verify-changes]
|
||||
runs-on: ubuntu-latest
|
||||
if: needs.verify-changes.outputs.build == 'true'
|
||||
strategy:
|
||||
matrix:
|
||||
node:
|
||||
|
@ -80,8 +109,8 @@ jobs:
|
|||
|
||||
commit-notification:
|
||||
runs-on: ubuntu-latest
|
||||
if: ${{ success() }}
|
||||
needs: [docker]
|
||||
if: ${{ success() && needs.verify-changes.outputs.build == 'true' }}
|
||||
needs: [docker, verify-changes]
|
||||
steps:
|
||||
|
||||
- name: Send Discord Commit Notification
|
||||
|
|
2
VERSION
2
VERSION
|
@ -1 +1 @@
|
|||
2.0.1-develop6
|
||||
2.0.1-develop7
|
||||
|
|
Loading…
Reference in a new issue