mirror of
https://github.com/jellyfin/jellyfin-plugin-webhook.git
synced 2024-11-27 00:00:28 +00:00
Merge pull request #42 from h1dden-da3m0n/ci/update
This commit is contained in:
commit
162fbd2b71
16
.github/dependabot.yml
vendored
16
.github/dependabot.yml
vendored
@ -4,9 +4,12 @@ updates:
|
||||
- package-ecosystem: nuget
|
||||
directory: /
|
||||
schedule:
|
||||
interval: daily
|
||||
time: '00:00'
|
||||
interval: weekly
|
||||
open-pull-requests-limit: 10
|
||||
labels:
|
||||
- chore
|
||||
- dependency
|
||||
- nuget
|
||||
commit-message:
|
||||
prefix: chore
|
||||
include: scope
|
||||
@ -15,9 +18,12 @@ updates:
|
||||
- package-ecosystem: github-actions
|
||||
directory: /
|
||||
schedule:
|
||||
interval: weekly
|
||||
time: '00:00'
|
||||
interval: monthly
|
||||
open-pull-requests-limit: 10
|
||||
labels:
|
||||
- ci
|
||||
- dependency
|
||||
- github_actions
|
||||
commit-message:
|
||||
prefix: chore
|
||||
prefix: ci
|
||||
include: scope
|
||||
|
19
.github/workflows/build-dotnet.yml
vendored
19
.github/workflows/build-dotnet.yml
vendored
@ -1,4 +1,4 @@
|
||||
name: Test Build Plugin
|
||||
name: Build Plugin
|
||||
|
||||
on:
|
||||
push:
|
||||
@ -21,11 +21,14 @@ jobs:
|
||||
with:
|
||||
dotnet-version: 5.0.x
|
||||
|
||||
- name: Install dependencies
|
||||
run: dotnet restore
|
||||
- name: Build Jellyfin Plugin
|
||||
uses: oddstr13/jellyfin-plugin-repository-manager@v0.4.2
|
||||
id: jprm
|
||||
|
||||
- name: Build
|
||||
run: dotnet build --configuration Release --no-restore
|
||||
|
||||
- name: Test
|
||||
run: dotnet test --no-restore --verbosity normal
|
||||
- name: Upload Artifact
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: build-artifact
|
||||
retention-days: 30
|
||||
if-no-files-found: error
|
||||
path: ${{ steps.jprm.outputs.artifact }}
|
||||
|
21
.github/workflows/create-github-release.yml
vendored
21
.github/workflows/create-github-release.yml
vendored
@ -1,21 +0,0 @@
|
||||
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 }}
|
16
.github/workflows/label-sync.yml
vendored
Normal file
16
.github/workflows/label-sync.yml
vendored
Normal file
@ -0,0 +1,16 @@
|
||||
name: Sync labels
|
||||
on:
|
||||
schedule:
|
||||
- cron: '0 0 1 * *'
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
labels:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: EndBug/label-sync@v2
|
||||
with:
|
||||
config-file: https://raw.githubusercontent.com/jellyfin/jellyfin-meta-plugins/master/.github/plugin-repo-labels.yaml
|
||||
delete-other-labels: true
|
||||
token: ${{ secrets.JF_BOT_TOKEN }}
|
31
.github/workflows/test-dotnet.yml
vendored
Normal file
31
.github/workflows/test-dotnet.yml
vendored
Normal file
@ -0,0 +1,31 @@
|
||||
name: Test 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
|
5
.github/workflows/update-release-draft.yml
vendored
5
.github/workflows/update-release-draft.yml
vendored
@ -18,12 +18,12 @@ jobs:
|
||||
uses: release-drafter/release-drafter@v5.15.0
|
||||
id: draft
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
GITHUB_TOKEN: ${{ secrets.JF_BOT_TOKEN }}
|
||||
|
||||
- name: Setup YQ
|
||||
uses: chrisdickinson/setup-yq@latest
|
||||
with:
|
||||
yq-version: v4.9.1
|
||||
yq-version: v4.9.6
|
||||
|
||||
- name: Parse changelog
|
||||
run: |
|
||||
@ -57,6 +57,7 @@ jobs:
|
||||
git checkout -b prepare-${{ env.VERSION }}
|
||||
git commit -am "Bump version to ${{ env.VERSION }}"
|
||||
git push -f origin prepare-${{ env.VERSION }}
|
||||
|
||||
- name: Create or Update PR
|
||||
uses: k3rnels-actions/pr-update@v1
|
||||
with:
|
||||
|
Loading…
Reference in New Issue
Block a user