mirror of
https://github.com/jellyfin/jellyfin-plugin-webhook.git
synced 2024-11-23 05:59:58 +00:00
Add Jellyfin ci, update build.yaml, update README.md
This commit is contained in:
parent
e6a11b4ee0
commit
3c4717845d
23
.github/dependabot.yml
vendored
Normal file
23
.github/dependabot.yml
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
version: 2
|
||||
updates:
|
||||
# Fetch and update latest `nuget` pkgs
|
||||
- package-ecosystem: nuget
|
||||
directory: /
|
||||
schedule:
|
||||
interval: daily
|
||||
time: '00:00'
|
||||
open-pull-requests-limit: 10
|
||||
commit-message:
|
||||
prefix: chore
|
||||
include: scope
|
||||
|
||||
# Fetch and update latest `github-actions` pkgs
|
||||
- package-ecosystem: github-actions
|
||||
directory: /
|
||||
schedule:
|
||||
interval: weekly
|
||||
time: '00:00'
|
||||
open-pull-requests-limit: 10
|
||||
commit-message:
|
||||
prefix: chore
|
||||
include: scope
|
9
.github/release-drafter.yml
vendored
Normal file
9
.github/release-drafter.yml
vendored
Normal file
@ -0,0 +1,9 @@
|
||||
_extends: jellyfin-meta-plugins
|
||||
|
||||
template: |
|
||||
<!-- Optional: add a release summary here -->
|
||||
[Plugin build can be downloaded here](https://repo.jellyfin.org/releases/plugin/webhook/webhook_$NEXT_MAJOR_VERSION.0.0.0.zip).
|
||||
|
||||
## :sparkles: What's New
|
||||
|
||||
$CHANGES
|
31
.github/workflows/build-dotnet.yml
vendored
Normal file
31
.github/workflows/build-dotnet.yml
vendored
Normal file
@ -0,0 +1,31 @@
|
||||
name: Test Build Plugin
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ master ]
|
||||
paths-ignore:
|
||||
- '**/*.md'
|
||||
pull_request:
|
||||
branches: [ master ]
|
||||
paths-ignore:
|
||||
- '**/*.md'
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- name: Setup .NET Core
|
||||
uses: actions/setup-dotnet@v1
|
||||
with:
|
||||
dotnet-version: 5.0.x
|
||||
|
||||
- name: Install dependencies
|
||||
run: dotnet restore
|
||||
|
||||
- name: Build
|
||||
run: dotnet build --configuration Release --no-restore
|
||||
|
||||
- name: Test
|
||||
run: dotnet test --no-restore --verbosity normal
|
45
.github/workflows/codeql-analysis.yml
vendored
Normal file
45
.github/workflows/codeql-analysis.yml
vendored
Normal file
@ -0,0 +1,45 @@
|
||||
name: Run CodeQL
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ master ]
|
||||
paths-ignore:
|
||||
- '**/*.md'
|
||||
pull_request:
|
||||
branches: [ master ]
|
||||
paths-ignore:
|
||||
- '**/*.md'
|
||||
schedule:
|
||||
- cron: '24 2 * * 4'
|
||||
|
||||
jobs:
|
||||
analyze:
|
||||
name: Analyze
|
||||
runs-on: ubuntu-latest
|
||||
if: github.repository == 'jellyfin/jellyfin-plugin-webhook'
|
||||
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
language: [ 'csharp' ]
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Setup .NET Core
|
||||
uses: actions/setup-dotnet@v1
|
||||
with:
|
||||
dotnet-version: 5.0.x
|
||||
|
||||
- name: Initialize CodeQL
|
||||
uses: github/codeql-action/init@v1
|
||||
with:
|
||||
languages: ${{ matrix.language }}
|
||||
queries: +security-and-quality
|
||||
|
||||
- name: Autobuild
|
||||
uses: github/codeql-action/autobuild@v1
|
||||
|
||||
- name: Perform CodeQL Analysis
|
||||
uses: github/codeql-action/analyze@v1
|
21
.github/workflows/create-github-release.yml
vendored
Normal file
21
.github/workflows/create-github-release.yml
vendored
Normal file
@ -0,0 +1,21 @@
|
||||
name: Publish Drafted GitHub Release
|
||||
|
||||
on:
|
||||
push:
|
||||
tags: [ 'v*' ]
|
||||
|
||||
jobs:
|
||||
publish_release_draft:
|
||||
runs-on: ubuntu-latest
|
||||
if: github.repository == 'jellyfin/jellyfin-plugin-webhook'
|
||||
|
||||
steps:
|
||||
- name: Get version from GITHUB_REF
|
||||
id: get-version
|
||||
run: echo "::set-output name=version::${GITHUB_REF/refs\/tags\//}"
|
||||
|
||||
- name: Publish release on GitHub
|
||||
uses: test-room-7/action-publish-release-drafts@v0
|
||||
with:
|
||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
tag-name: ${{ steps.get-version.outputs.version }}
|
23
.github/workflows/dotnet-core.yml
vendored
23
.github/workflows/dotnet-core.yml
vendored
@ -1,23 +0,0 @@
|
||||
name: .NET Core
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ master ]
|
||||
pull_request:
|
||||
branches: [ master ]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Setup .NET Core
|
||||
uses: actions/setup-dotnet@v1
|
||||
with:
|
||||
dotnet-version: 5.0.x
|
||||
- name: Install dependencies
|
||||
run: dotnet restore
|
||||
- name: Build
|
||||
run: dotnet build --configuration Release --no-restore
|
||||
- name: Test
|
||||
run: dotnet test --no-restore --verbosity normal
|
18
.github/workflows/update-release-draft.yml
vendored
Normal file
18
.github/workflows/update-release-draft.yml
vendored
Normal file
@ -0,0 +1,18 @@
|
||||
# Automates creation of Release Drafts using Release Drafter
|
||||
name: Update Release Draft
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
update_release_draft:
|
||||
runs-on: ubuntu-latest
|
||||
if: github.repository == 'jellyfin/jellyfin-plugin-webhook'
|
||||
|
||||
steps:
|
||||
# Drafts your next Release notes as Pull Requests are merged into "master"
|
||||
- uses: release-drafter/release-drafter@v5.15.0
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
20
README.md
20
README.md
@ -1,8 +1,20 @@
|
||||
# Jellyfin Webhook Plugin
|
||||
<h1 align="center">Jellyfin TheTVDB Plugin</h1>
|
||||
<h3 align="center">Part of the <a href="https://jellyfin.media">Jellyfin Project</a></h3>
|
||||
|
||||
## Part of the [Jellyfin Project](https://jellyfin.org)
|
||||
|
||||
#### Repository - https://repo.codyrobibero.dev/manifest.json
|
||||
<p align="center">
|
||||
<img alt="Plugin Banner" src="https://raw.githubusercontent.com/jellyfin/jellyfin-ux/master/plugins/SVG/jellyfin-plugin-webhook.svg?sanitize=true"/>
|
||||
<br/>
|
||||
<br/>
|
||||
<a href="https://github.com/jellyfin/jellyfin-plugin-webhook/actions?query=workflow%3A%22Test+Build+Plugin%22">
|
||||
<img alt="GitHub Workflow Status" src="https://img.shields.io/github/workflow/status/jellyfin/jellyfin-plugin-webhook/Test%20Build%20Plugin.svg">
|
||||
</a>
|
||||
<a href="https://github.com/jellyfin/jellyfin-plugin-webhook">
|
||||
<img alt="GPLv3 License" src="https://img.shields.io/github/license/jellyfin/jellyfin-plugin-webhook.svg"/>
|
||||
</a>
|
||||
<a href="https://github.com/jellyfin/jellyfin-plugin-webhook/releases">
|
||||
<img alt="Current Release" src="https://img.shields.io/github/release/jellyfin/jellyfin-plugin-webhook.svg"/>
|
||||
</a>
|
||||
</p>
|
||||
|
||||
Use [Handlebars](https://handlebarsjs.com/guide/) templating engine to format notifications however you wish.
|
||||
|
||||
|
@ -1,10 +1,11 @@
|
||||
---
|
||||
name: "Webhook"
|
||||
guid: "71552A5A-5C5C-4350-A2AE-EBE451A30173"
|
||||
imageUrl: "https://repo.jellyfin.org/releases/plugin/images/jellyfin-plugin-webhook.png"
|
||||
version: "2.0.0.0"
|
||||
targetAbi: "10.7.0.0"
|
||||
framework: "net5.0"
|
||||
owner: "crobibero"
|
||||
owner: "jellyfin"
|
||||
overview: "Sends notifications."
|
||||
description: >
|
||||
Sends notifications to destinations via webhooks.
|
||||
@ -16,4 +17,4 @@ artifacts:
|
||||
- "MimeKit.dll"
|
||||
- "BouncyCastle.Crypto.dll"
|
||||
changelog: >
|
||||
Add SMTP, Pushullet, Slack clients
|
||||
--
|
||||
|
Loading…
Reference in New Issue
Block a user