Skip to content

Commit

Permalink
Unix line endings
Browse files Browse the repository at this point in the history
  • Loading branch information
gade01 committed May 7, 2021
1 parent 824f5a4 commit df4c6b1
Show file tree
Hide file tree
Showing 81 changed files with 7,516 additions and 7,516 deletions.
6 changes: 3 additions & 3 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.gitignore export-ignore
.gitattributes export-ignore
.github export-ignore
.gitignore export-ignore
.gitattributes export-ignore
.github export-ignore
changelog.txt
66 changes: 33 additions & 33 deletions .github/workflows/addon-check.yml
Original file line number Diff line number Diff line change
@@ -1,33 +1,33 @@
name: Kodi Addon-Check

on:
push:
branches:
- '*'
tags-ignore:
- v*
pull_request:
branches:
- '*'

jobs:
kodi-addon-checker:
runs-on: ubuntu-latest
name: Kodi addon checker
steps:

- name: Checkout
uses: actions/checkout@v1

- name: Extract official repo target
shell: bash
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
id: extract_branch

- name: Kodi addon checker validation
id: kodi-addon-checker
uses: xbmc/[email protected]
with:
kodi-version: ${{ steps.extract_branch.outputs.branch }}
addon-id: ${{ github.event.repository.name }}
is-pr: false
name: Kodi Addon-Check

on:
push:
branches:
- '*'
tags-ignore:
- v*
pull_request:
branches:
- '*'

jobs:
kodi-addon-checker:
runs-on: ubuntu-latest
name: Kodi addon checker
steps:

- name: Checkout
uses: actions/checkout@v1

- name: Extract official repo target
shell: bash
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
id: extract_branch

- name: Kodi addon checker validation
id: kodi-addon-checker
uses: xbmc/[email protected]
with:
kodi-version: ${{ steps.extract_branch.outputs.branch }}
addon-id: ${{ github.event.repository.name }}
is-pr: false
140 changes: 70 additions & 70 deletions .github/workflows/addon-submitter.yml
Original file line number Diff line number Diff line change
@@ -1,70 +1,70 @@
name: Kodi Addon-Submitter

on:
create:
tags:
- v*

jobs:
kodi-addon-submitter:
runs-on: ubuntu-latest
name: Kodi Addon Submitter
steps:

- name: Checkout
uses: actions/checkout@v1

- name: Extract kodi official repository target
id: extract_branch_pr
shell: bash
env:
ADDON_ID: ${{ github.event.repository.name }}
run: |
echo "##[set-output name=branch;]$(git --no-pager branch -a --contains "$GITHUB_SHA" | grep 'remotes/origin/' | cut -d '/' -f3)"
if [[ $ADDON_ID == plugin* ]]; then
echo "##[set-output name=repo;]repo-plugins"
else
echo "##[set-output name=repo;]repo-scripts"
fi
- name: Kodi addon checker validation
id: kodi-addon-checker
uses: xbmc/[email protected]
with:
kodi-version: ${{ steps.extract_branch_pr.outputs.branch }}
addon-id: ${{ github.event.repository.name }}
is-pr: true

- name: Generate distribution zip and submit to official kodi repository
id: kodi-addon-submitter
uses: xbmc/[email protected]
with: # Replace all the below values
kodi-repository: ${{ steps.extract_branch_pr.outputs.repo }}
kodi-version: ${{ steps.extract_branch_pr.outputs.branch }}
addon-id: ${{ github.event.repository.name }}
env: # Make sure you create the below secrets (GH_TOKEN and EMAIL)
GH_USERNAME: enenbot
GH_TOKEN: ${{secrets.GH_TOKEN}}
EMAIL: ${{secrets.EMAIL}}

- name: Create Github Release
id: create_release
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: false
prerelease: false
body: "Version for use in Kodi ${{ steps.extract_branch_pr.outputs.branch }} and above"

- name: Upload Addon zip to github release
id: upload-release-asset
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ${{ steps.kodi-addon-submitter.outputs.addon-zip }}
asset_name: ${{ steps.kodi-addon-submitter.outputs.addon-zip }}
asset_content_type: application/zip
name: Kodi Addon-Submitter

on:
create:
tags:
- v*

jobs:
kodi-addon-submitter:
runs-on: ubuntu-latest
name: Kodi Addon Submitter
steps:

- name: Checkout
uses: actions/checkout@v1

- name: Extract kodi official repository target
id: extract_branch_pr
shell: bash
env:
ADDON_ID: ${{ github.event.repository.name }}
run: |
echo "##[set-output name=branch;]$(git --no-pager branch -a --contains "$GITHUB_SHA" | grep 'remotes/origin/' | cut -d '/' -f3)"
if [[ $ADDON_ID == plugin* ]]; then
echo "##[set-output name=repo;]repo-plugins"
else
echo "##[set-output name=repo;]repo-scripts"
fi
- name: Kodi addon checker validation
id: kodi-addon-checker
uses: xbmc/[email protected]
with:
kodi-version: ${{ steps.extract_branch_pr.outputs.branch }}
addon-id: ${{ github.event.repository.name }}
is-pr: true

- name: Generate distribution zip and submit to official kodi repository
id: kodi-addon-submitter
uses: xbmc/[email protected]
with: # Replace all the below values
kodi-repository: ${{ steps.extract_branch_pr.outputs.repo }}
kodi-version: ${{ steps.extract_branch_pr.outputs.branch }}
addon-id: ${{ github.event.repository.name }}
env: # Make sure you create the below secrets (GH_TOKEN and EMAIL)
GH_USERNAME: enenbot
GH_TOKEN: ${{secrets.GH_TOKEN}}
EMAIL: ${{secrets.EMAIL}}

- name: Create Github Release
id: create_release
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: false
prerelease: false
body: "Version for use in Kodi ${{ steps.extract_branch_pr.outputs.branch }} and above"

- name: Upload Addon zip to github release
id: upload-release-asset
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ${{ steps.kodi-addon-submitter.outputs.addon-zip }}
asset_name: ${{ steps.kodi-addon-submitter.outputs.addon-zip }}
asset_content_type: application/zip
6 changes: 3 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
*.pyc
*.pyo
__pycache__
*.pyc
*.pyo
__pycache__
.DS_Store
Loading

0 comments on commit df4c6b1

Please sign in to comment.