mirror of
https://github.com/meisnate12/Plex-Meta-Manager
synced 2024-11-10 06:54:21 +00:00
update actions
This commit is contained in:
parent
27a073d83d
commit
87f2621239
6 changed files with 102 additions and 57 deletions
51
.github/workflows/copyright.yml
vendored
Normal file
51
.github/workflows/copyright.yml
vendored
Normal file
|
@ -0,0 +1,51 @@
|
||||||
|
name: Update Copyright Year
|
||||||
|
|
||||||
|
on:
|
||||||
|
schedule:
|
||||||
|
- cron: '0 3 1 1 *'
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
update:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
|
||||||
|
- name: Get current year
|
||||||
|
id: date
|
||||||
|
run: echo "year=$(date +'%Y')" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
|
- name: Check Out Repo
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
ref: nightly
|
||||||
|
|
||||||
|
- name: Update Copyright
|
||||||
|
run: sed -i -E 's/(Copyright \(c\) ).+( meisnate12)/\1${{ steps.date.outputs.year }}\2/' LICENSE
|
||||||
|
|
||||||
|
- name: Check Diff
|
||||||
|
id: verify_diff
|
||||||
|
run: |
|
||||||
|
git diff --quiet . || echo "changed=true" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
|
- name: Commit & Push Changes
|
||||||
|
if: steps.verify_diff.outputs.changed == 'true'
|
||||||
|
run: |
|
||||||
|
git config --local user.email "action@github.com"
|
||||||
|
git config --local user.name "GitHub Action"
|
||||||
|
git add -A
|
||||||
|
git commit -m "Copyright updated to ${{ steps.date.outputs.year }}" -a
|
||||||
|
git push origin nightly
|
||||||
|
|
||||||
|
- name: Discord Failure Notification
|
||||||
|
uses: Kometa-Team/discord-notifications@master
|
||||||
|
if: failure()
|
||||||
|
with:
|
||||||
|
webhook_id_token: ${{ secrets.BUILD_WEBHOOK }}
|
||||||
|
message: <@&1079153184007790652>
|
||||||
|
title: "${{ secrets.REPO_NAME }}: **Copyright Update Failed**"
|
||||||
|
url: https://github.com/Kometa-Team/${{ secrets.REPO_NAME }}/actions/runs/${{ github.run_id }}
|
||||||
|
color: 14879811
|
||||||
|
username: Kobota
|
||||||
|
avatar_url: https://raw.githubusercontent.com/Kometa-Team/Kometa/nightly/.github/logo.png
|
||||||
|
author: GitHub
|
||||||
|
author_icon_url: https://raw.githubusercontent.com/Kometa-Team/Kometa/nightly/.github/git.png
|
30
.github/workflows/develop.yml
vendored
30
.github/workflows/develop.yml
vendored
|
@ -8,7 +8,7 @@ on:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|
||||||
docker-develop:
|
docker:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
|
@ -42,7 +42,7 @@ jobs:
|
||||||
"BRANCH_NAME=develop"
|
"BRANCH_NAME=develop"
|
||||||
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 }}/kometa:develop
|
tags: kometateam/kometa:develop
|
||||||
cache-from: type=gha
|
cache-from: type=gha
|
||||||
cache-to: type=gha,mode=max
|
cache-to: type=gha,mode=max
|
||||||
|
|
||||||
|
@ -56,31 +56,30 @@ jobs:
|
||||||
"BRANCH_NAME=develop"
|
"BRANCH_NAME=develop"
|
||||||
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 }}/kometa:lxml-develop
|
tags: kometateam/kometa:lxml-develop
|
||||||
cache-from: type=gha
|
cache-from: type=gha
|
||||||
cache-to: type=gha,mode=max
|
cache-to: type=gha,mode=max
|
||||||
|
|
||||||
- name: Send Discord Commit Notification
|
- name: Send Discord Commit Notification
|
||||||
uses: Kometa-Team/discord-notifications@master
|
uses: Kometa-Team/discord-notifications@master
|
||||||
with:
|
with:
|
||||||
webhook_id: ${{ secrets.DEVELOP_WEBHOOK_ID }}
|
webhook_id_token: ${{ secrets.DEVELOP_WEBHOOK }}
|
||||||
webhook_token: ${{ secrets.DEVELOP_WEBHOOK_TOKEN }}
|
title: Commits
|
||||||
title: Develop Commits
|
|
||||||
message: "<@&954835263731949623> - An update to Kometa has been published and is available to users of the **develop** branch.\n\nWe **strongly** recommend users who previously switched to the `nightly` branch to resolve any previous issues to now switch back to the `develop` branch now."
|
message: "<@&954835263731949623> - An update to Kometa has been published and is available to users of the **develop** branch.\n\nWe **strongly** recommend users who previously switched to the `nightly` branch to resolve any previous issues to now switch back to the `develop` branch now."
|
||||||
commits: "true"
|
commits: "true"
|
||||||
username: Kobota
|
username: Kobota
|
||||||
avatar_url: https://raw.githubusercontent.com/Kometa-Team/Kometa/develop/.github/logo.png
|
avatar_url: https://raw.githubusercontent.com/Kometa-Team/Kometa/develop/.github/logo.png
|
||||||
author: Kometa Develop Release
|
author: ${{ secrets.REPO_NAME }} Develop Release
|
||||||
author_icon_url: https://raw.githubusercontent.com/Kometa-Team/Kometa/develop/.github/release.png
|
author_icon_url: https://raw.githubusercontent.com/Kometa-Team/Kometa/develop/.github/release.png
|
||||||
|
|
||||||
- name: Discord Success Notification
|
- name: Discord Success Notification
|
||||||
uses: Kometa-Team/discord-notifications@master
|
uses: Kometa-Team/discord-notifications@master
|
||||||
if: success()
|
if: success()
|
||||||
with:
|
with:
|
||||||
webhook_id: ${{ secrets.BUILD_WEBHOOK_ID }}
|
webhook_id_token: ${{ secrets.BUILD_WEBHOOK }}
|
||||||
webhook_token: ${{ secrets.BUILD_WEBHOOK_TOKEN }}
|
title: "${{ secrets.REPO_NAME }} develop: **Build Successful**"
|
||||||
title: "develop build: **Success**"
|
url: https://github.com/Kometa-Team/${{ secrets.REPO_NAME }}/actions/runs/${{ github.run_id }}
|
||||||
url: https://github.com/Kometa-Team/Kometa/actions/runs/${{ github.run_id }}
|
color: 844716
|
||||||
username: Kobota
|
username: Kobota
|
||||||
avatar_url: https://raw.githubusercontent.com/Kometa-Team/Kometa/develop/.github/logo.png
|
avatar_url: https://raw.githubusercontent.com/Kometa-Team/Kometa/develop/.github/logo.png
|
||||||
author: Docker
|
author: Docker
|
||||||
|
@ -90,12 +89,11 @@ jobs:
|
||||||
uses: Kometa-Team/discord-notifications@master
|
uses: Kometa-Team/discord-notifications@master
|
||||||
if: failure()
|
if: failure()
|
||||||
with:
|
with:
|
||||||
webhook_id: ${{ secrets.BUILD_WEBHOOK_ID }}
|
webhook_id_token: ${{ secrets.BUILD_WEBHOOK }}
|
||||||
webhook_token: ${{ secrets.BUILD_WEBHOOK_TOKEN }}
|
|
||||||
message: <@&1079153184007790652>
|
message: <@&1079153184007790652>
|
||||||
title: "develop build: **Failure**"
|
title: "${{ secrets.REPO_NAME }} develop: **Build Failed**"
|
||||||
color: 0xe30c43
|
url: https://github.com/Kometa-Team/${{ secrets.REPO_NAME }}/actions/runs/${{ github.run_id }}
|
||||||
url: https://github.com/Kometa-Team/Kometa/actions/runs/${{ github.run_id }}
|
color: 14879811
|
||||||
username: Kobota
|
username: Kobota
|
||||||
avatar_url: https://raw.githubusercontent.com/Kometa-Team/Kometa/develop/.github/logo.png
|
avatar_url: https://raw.githubusercontent.com/Kometa-Team/Kometa/develop/.github/logo.png
|
||||||
author: Docker
|
author: Docker
|
||||||
|
|
23
.github/workflows/latest.yml
vendored
23
.github/workflows/latest.yml
vendored
|
@ -6,7 +6,7 @@ on:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|
||||||
docker-latest:
|
docker:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
|
@ -36,7 +36,7 @@ jobs:
|
||||||
file: ./Dockerfile
|
file: ./Dockerfile
|
||||||
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 }}/kometa:latest
|
tags: kometateam/kometa:latest
|
||||||
cache-from: type=gha
|
cache-from: type=gha
|
||||||
cache-to: type=gha,mode=max
|
cache-to: type=gha,mode=max
|
||||||
|
|
||||||
|
@ -48,7 +48,7 @@ jobs:
|
||||||
file: ./Dockerfile.lxml
|
file: ./Dockerfile.lxml
|
||||||
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 }}/kometa:lxml-latest
|
tags: kometateam/kometa:lxml-latest
|
||||||
cache-from: type=gha
|
cache-from: type=gha
|
||||||
cache-to: type=gha,mode=max
|
cache-to: type=gha,mode=max
|
||||||
|
|
||||||
|
@ -56,10 +56,10 @@ jobs:
|
||||||
uses: Kometa-Team/discord-notifications@master
|
uses: Kometa-Team/discord-notifications@master
|
||||||
if: success()
|
if: success()
|
||||||
with:
|
with:
|
||||||
webhook_id: ${{ secrets.BUILD_WEBHOOK_ID }}
|
webhook_id_token: ${{ secrets.BUILD_WEBHOOK }}
|
||||||
webhook_token: ${{ secrets.BUILD_WEBHOOK_TOKEN }}
|
title: "${{ secrets.REPO_NAME }} latest: **Build Successful**"
|
||||||
title: "latest build: **Success**"
|
url: https://github.com/Kometa-Team/${{ secrets.REPO_NAME }}/actions/runs/${{ github.run_id }}
|
||||||
url: https://github.com/Kometa-Team/Kometa/actions/runs/${{ github.run_id }}
|
color: 844716
|
||||||
username: Kobota
|
username: Kobota
|
||||||
avatar_url: https://raw.githubusercontent.com/Kometa-Team/Kometa/master/.github/logo.png
|
avatar_url: https://raw.githubusercontent.com/Kometa-Team/Kometa/master/.github/logo.png
|
||||||
author: Docker
|
author: Docker
|
||||||
|
@ -69,12 +69,11 @@ jobs:
|
||||||
uses: Kometa-Team/discord-notifications@master
|
uses: Kometa-Team/discord-notifications@master
|
||||||
if: failure()
|
if: failure()
|
||||||
with:
|
with:
|
||||||
webhook_id: ${{ secrets.BUILD_WEBHOOK_ID }}
|
webhook_id_token: ${{ secrets.BUILD_WEBHOOK }}
|
||||||
webhook_token: ${{ secrets.BUILD_WEBHOOK_TOKEN }}
|
|
||||||
message: <@&1079153184007790652>
|
message: <@&1079153184007790652>
|
||||||
title: "latest build: **Failure**"
|
title: "${{ secrets.REPO_NAME }} latest: **Build Failed**"
|
||||||
color: 0xe30c43
|
url: https://github.com/Kometa-Team/${{ secrets.REPO_NAME }}/actions/runs/${{ github.run_id }}
|
||||||
url: https://github.com/Kometa-Team/Kometa/actions/runs/${{ github.run_id }}
|
color: 14879811
|
||||||
username: Kobota
|
username: Kobota
|
||||||
avatar_url: https://raw.githubusercontent.com/Kometa-Team/Kometa/master/.github/logo.png
|
avatar_url: https://raw.githubusercontent.com/Kometa-Team/Kometa/master/.github/logo.png
|
||||||
author: Docker
|
author: Docker
|
||||||
|
|
30
.github/workflows/nightly.yml
vendored
30
.github/workflows/nightly.yml
vendored
|
@ -8,7 +8,7 @@ on:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|
||||||
docker-nightly:
|
docker:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
|
@ -42,7 +42,7 @@ jobs:
|
||||||
"BRANCH_NAME=nightly"
|
"BRANCH_NAME=nightly"
|
||||||
platforms: linux/amd64,linux/arm64
|
platforms: linux/amd64,linux/arm64
|
||||||
push: true
|
push: true
|
||||||
tags: ${{ secrets.DOCKER_HUB_USERNAME }}/kometa:nightly
|
tags: kometateam/kometa:nightly
|
||||||
cache-from: type=gha
|
cache-from: type=gha
|
||||||
cache-to: type=gha,mode=max
|
cache-to: type=gha,mode=max
|
||||||
|
|
||||||
|
@ -56,31 +56,30 @@ jobs:
|
||||||
"BRANCH_NAME=nightly"
|
"BRANCH_NAME=nightly"
|
||||||
platforms: linux/amd64,linux/arm64
|
platforms: linux/amd64,linux/arm64
|
||||||
push: true
|
push: true
|
||||||
tags: ${{ secrets.DOCKER_HUB_USERNAME }}/kometa:lxml-nightly
|
tags: kometateam/kometa:lxml-nightly
|
||||||
cache-from: type=gha
|
cache-from: type=gha
|
||||||
cache-to: type=gha,mode=max
|
cache-to: type=gha,mode=max
|
||||||
|
|
||||||
- name: Send Discord Commit Notification
|
- name: Send Discord Commit Notification
|
||||||
uses: Kometa-Team/discord-notifications@master
|
uses: Kometa-Team/discord-notifications@master
|
||||||
with:
|
with:
|
||||||
webhook_id: ${{ secrets.NIGHTLY_WEBHOOK_ID }}
|
webhook_id_token: ${{ secrets.DEVELOP_WEBHOOK }}
|
||||||
webhook_token: ${{ secrets.NIGHTLY_WEBHOOK_TOKEN }}
|
title: Commits
|
||||||
title: Nightly Commits
|
|
||||||
message: "<@&967002147520675840> - An update to Kometa has now been published and is available to users of the **nightly** branch."
|
message: "<@&967002147520675840> - An update to Kometa has now been published and is available to users of the **nightly** branch."
|
||||||
commits: "true"
|
commits: "true"
|
||||||
username: Kobota
|
username: Kobota
|
||||||
avatar_url: https://raw.githubusercontent.com/Kometa-Team/Kometa/nightly/.github/logo.png
|
avatar_url: https://raw.githubusercontent.com/Kometa-Team/Kometa/nightly/.github/logo.png
|
||||||
author: Kometa Nightly Release
|
author: ${{ secrets.REPO_NAME }} Nightly Release
|
||||||
author_icon_url: https://raw.githubusercontent.com/Kometa-Team/Kometa/nightly/.github/release.png
|
author_icon_url: https://raw.githubusercontent.com/Kometa-Team/Kometa/nightly/.github/release.png
|
||||||
|
|
||||||
- name: Discord Success Notification
|
- name: Discord Success Notification
|
||||||
uses: Kometa-Team/discord-notifications@master
|
uses: Kometa-Team/discord-notifications@master
|
||||||
if: success()
|
if: success()
|
||||||
with:
|
with:
|
||||||
webhook_id: ${{ secrets.BUILD_WEBHOOK_ID }}
|
webhook_id_token: ${{ secrets.BUILD_WEBHOOK }}
|
||||||
webhook_token: ${{ secrets.BUILD_WEBHOOK_TOKEN }}
|
title: "${{ secrets.REPO_NAME }} nightly: **Build Successful**"
|
||||||
title: "nightly build: **Success**"
|
url: https://github.com/Kometa-Team/${{ secrets.REPO_NAME }}/actions/runs/${{ github.run_id }}
|
||||||
url: https://github.com/Kometa-Team/Kometa/actions/runs/${{ github.run_id }}
|
color: 844716
|
||||||
username: Kobota
|
username: Kobota
|
||||||
avatar_url: https://raw.githubusercontent.com/Kometa-Team/Kometa/nightly/.github/logo.png
|
avatar_url: https://raw.githubusercontent.com/Kometa-Team/Kometa/nightly/.github/logo.png
|
||||||
author: Docker
|
author: Docker
|
||||||
|
@ -90,12 +89,11 @@ jobs:
|
||||||
uses: Kometa-Team/discord-notifications@master
|
uses: Kometa-Team/discord-notifications@master
|
||||||
if: failure()
|
if: failure()
|
||||||
with:
|
with:
|
||||||
webhook_id: ${{ secrets.BUILD_WEBHOOK_ID }}
|
webhook_id_token: ${{ secrets.BUILD_WEBHOOK }}
|
||||||
webhook_token: ${{ secrets.BUILD_WEBHOOK_TOKEN }}
|
|
||||||
message: <@&1079153184007790652>
|
message: <@&1079153184007790652>
|
||||||
title: "nightly build: **Failure**"
|
title: "${{ secrets.REPO_NAME }} nightly: **Build Failed**"
|
||||||
color: 0xe30c43
|
url: https://github.com/Kometa-Team/${{ secrets.REPO_NAME }}/actions/runs/${{ github.run_id }}
|
||||||
url: https://github.com/Kometa-Team/Kometa/actions/runs/${{ github.run_id }}
|
color: 14879811
|
||||||
username: Kobota
|
username: Kobota
|
||||||
avatar_url: https://raw.githubusercontent.com/Kometa-Team/Kometa/nightly/.github/logo.png
|
avatar_url: https://raw.githubusercontent.com/Kometa-Team/Kometa/nightly/.github/logo.png
|
||||||
author: Docker
|
author: Docker
|
||||||
|
|
23
.github/workflows/version.yml
vendored
23
.github/workflows/version.yml
vendored
|
@ -7,7 +7,7 @@ on:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|
||||||
docker-version:
|
docker:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
@ -44,7 +44,7 @@ jobs:
|
||||||
file: ./Dockerfile
|
file: ./Dockerfile
|
||||||
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 }}/kometa:${{ steps.get_version.outputs.VERSION }}
|
tags: kometateam/kometa:${{ steps.get_version.outputs.VERSION }}
|
||||||
cache-from: type=gha
|
cache-from: type=gha
|
||||||
cache-to: type=gha,mode=max
|
cache-to: type=gha,mode=max
|
||||||
|
|
||||||
|
@ -56,7 +56,7 @@ jobs:
|
||||||
file: ./Dockerfile.lxml
|
file: ./Dockerfile.lxml
|
||||||
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 }}/kometa:lxml-${{ steps.get_version.outputs.VERSION }}
|
tags: kometateam/kometa:lxml-${{ steps.get_version.outputs.VERSION }}
|
||||||
cache-from: type=gha
|
cache-from: type=gha
|
||||||
cache-to: type=gha,mode=max
|
cache-to: type=gha,mode=max
|
||||||
|
|
||||||
|
@ -64,10 +64,10 @@ jobs:
|
||||||
uses: Kometa-Team/discord-notifications@master
|
uses: Kometa-Team/discord-notifications@master
|
||||||
if: success()
|
if: success()
|
||||||
with:
|
with:
|
||||||
webhook_id: ${{ secrets.BUILD_WEBHOOK_ID }}
|
webhook_id_token: ${{ secrets.BUILD_WEBHOOK }}
|
||||||
webhook_token: ${{ secrets.BUILD_WEBHOOK_TOKEN }}
|
title: "${{ secrets.REPO_NAME }} ${{ steps.get_version.outputs.VERSION }}: **Build Successful**"
|
||||||
title: "${{ steps.get_version.outputs.VERSION }} build: **Success**"
|
url: https://github.com/Kometa-Team/${{ secrets.REPO_NAME }}/actions/runs/${{ github.run_id }}
|
||||||
url: https://github.com/Kometa-Team/Kometa/actions/runs/${{ github.run_id }}
|
color: 844716
|
||||||
username: Kobota
|
username: Kobota
|
||||||
avatar_url: https://raw.githubusercontent.com/Kometa-Team/Kometa/master/.github/logo.png
|
avatar_url: https://raw.githubusercontent.com/Kometa-Team/Kometa/master/.github/logo.png
|
||||||
author: Docker
|
author: Docker
|
||||||
|
@ -77,12 +77,11 @@ jobs:
|
||||||
uses: Kometa-Team/discord-notifications@master
|
uses: Kometa-Team/discord-notifications@master
|
||||||
if: failure()
|
if: failure()
|
||||||
with:
|
with:
|
||||||
webhook_id: ${{ secrets.BUILD_WEBHOOK_ID }}
|
webhook_id_token: ${{ secrets.BUILD_WEBHOOK }}
|
||||||
webhook_token: ${{ secrets.BUILD_WEBHOOK_TOKEN }}
|
|
||||||
message: <@&1079153184007790652>
|
message: <@&1079153184007790652>
|
||||||
title: "${{ steps.get_version.outputs.VERSION }} build: **Failure**"
|
title: "${{ secrets.REPO_NAME }} ${{ steps.get_version.outputs.VERSION }}: **Build Failed**"
|
||||||
color: 0xe30c43
|
url: https://github.com/Kometa-Team/${{ secrets.REPO_NAME }}/actions/runs/${{ github.run_id }}
|
||||||
url: https://github.com/Kometa-Team/Kometa/actions/runs/${{ github.run_id }}
|
color: 14879811
|
||||||
username: Kobota
|
username: Kobota
|
||||||
avatar_url: https://raw.githubusercontent.com/Kometa-Team/Kometa/master/.github/logo.png
|
avatar_url: https://raw.githubusercontent.com/Kometa-Team/Kometa/master/.github/logo.png
|
||||||
author: Docker
|
author: Docker
|
||||||
|
|
2
VERSION
2
VERSION
|
@ -1 +1 @@
|
||||||
1.21.1!
|
1.21.1
|
||||||
|
|
Loading…
Reference in a new issue