Skip to content

Commit fd1d2a8

Browse files
committed
Fix workflows
1 parent 5f62856 commit fd1d2a8

File tree

1 file changed

+20
-17
lines changed

1 file changed

+20
-17
lines changed

.github/workflows/addon-check.yml

Lines changed: 20 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33

44
name: Kodi
55
on:
6-
# Run action when pushed to master, or for commits in a pull request.
76
push:
87
branches:
98
- master
@@ -17,19 +16,23 @@ jobs:
1716
strategy:
1817
fail-fast: false
1918
steps:
20-
- uses: actions/checkout@v4
21-
with:
22-
path: ${{ github.repository }}
23-
- name: Set up Python 3.12
24-
uses: actions/setup-python@v5
25-
with:
26-
python-version: 3.12
27-
- name: Install dependencies
28-
run: |
29-
python -m pip install --upgrade pip
30-
pip install --user kodi-addon-checker
31-
- name: Remove unwanted files
32-
run: awk '/export-ignore/ { print $1 }' .gitattributes | xargs rm -rf --
33-
working-directory: ${{ github.repository }}
34-
- name: Run kodi-addon-checker
35-
run: $HOME/.local/bin/kodi-addon-checker --branch=matrix ${{ github.repository }}/
19+
- name: Extract repo name
20+
id: repo
21+
run: echo "name=${GITHUB_REPOSITORY##*/}" >> "$GITHUB_OUTPUT"
22+
- uses: actions/checkout@v5
23+
with:
24+
path: ${{ steps.repo.outputs.name }}
25+
- name: Set up Python 3.12
26+
uses: actions/setup-python@v5
27+
with:
28+
python-version: 3.12
29+
- name: Install dependencies
30+
run: |
31+
python -m pip install --upgrade pip
32+
pip install --user kodi-addon-checker
33+
- name: Remove unwanted files
34+
run: awk '/export-ignore/ { print $1 }' .gitattributes | xargs rm -rf --
35+
working-directory: ${{ steps.repo.outputs.name }}
36+
- name: Run kodi-addon-checker
37+
run: $HOME/.local/bin/kodi-addon-checker --branch=matrix ${{ steps.repo.outputs.name }}
38+

0 commit comments

Comments
 (0)