From a7763a926f9494dfb24ac02d999b4863e0084e68 Mon Sep 17 00:00:00 2001 From: clement-dufour Date: Tue, 20 Aug 2024 21:39:38 +0200 Subject: [PATCH] Add addon validation action on push/pr --- .github/dependabot.yml | 10 ++++++++++ .github/workflows/addon-validation.yml | 25 +++++++++++++++++++++++++ 2 files changed, 35 insertions(+) create mode 100644 .github/dependabot.yml create mode 100644 .github/workflows/addon-validation.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..d3774d7 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,10 @@ +# Set update schedule for GitHub Actions +# https://docs.github.com/fr/code-security/dependabot/working-with-dependabot/keeping-your-actions-up-to-date-with-dependabot +version: 2 +updates: + + - package-ecosystem: "github-actions" + directory: "/" + schedule: + # Check for updates to GitHub Actions every week + interval: "weekly" diff --git a/.github/workflows/addon-validation.yml b/.github/workflows/addon-validation.yml new file mode 100644 index 0000000..5af2e57 --- /dev/null +++ b/.github/workflows/addon-validation.yml @@ -0,0 +1,25 @@ +# https://github.com/xbmc/action-kodi-addon-checker?tab=readme-ov-file#example-usage +name: Addon Validation + +on: [push, pull_request] + +jobs: + kodi-addon-checker: + name: Kodi Addon checker + runs-on: ubuntu-latest + + permissions: + contents: read + + steps: + - name: Checkout Repository + uses: actions/checkout@v4 + with: + fetch-depth: 1 + + - name: Validate Addon + uses: xbmc/action-kodi-addon-checker@v1.2 + with: + kodi-version: nexus + addon-id: ${{ github.event.repository.name }} + is-pr: false