Skip to content

Commit d0abe9d

Browse files
authored
Merge pull request #213 from phunkyfish/update-workflow-nexus
Update deprecated github workflows nexus
2 parents 4d63c5e + 2274e4d commit d0abe9d

5 files changed

+23
-29
lines changed

.github/workflows/build.yml

+4-11
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,6 @@ jobs:
1515
CC: gcc
1616
CXX: g++
1717
DEBIAN_BUILD: true
18-
#- os: ubuntu-latest
19-
#CC: gcc
20-
#CXX: g++
21-
#- os: ubuntu-latest
22-
#CC: clang
23-
#CXX: clang++
24-
#- os: macos-10.15
2518
steps:
2619
- name: Install needed ubuntu depends
2720
env:
@@ -31,13 +24,13 @@ jobs:
3124
if [[ $DEBIAN_BUILD == true ]]; then sudo apt-get update; fi
3225
if [[ $DEBIAN_BUILD == true ]]; then sudo apt-get install fakeroot; fi
3326
- name: Checkout Kodi repo
34-
uses: actions/checkout@v2
27+
uses: actions/checkout@v4
3528
with:
3629
repository: xbmc/xbmc
3730
ref: Nexus
3831
path: xbmc
39-
- name: Checkout pvr.stalker repo
40-
uses: actions/checkout@v2
32+
- name: Checkout add-on repo
33+
uses: actions/checkout@v4
4134
with:
4235
path: ${{ env.app_id }}
4336
- name: Configure
@@ -48,7 +41,7 @@ jobs:
4841
run: |
4942
if [[ $DEBIAN_BUILD != true ]]; then cd ${app_id} && mkdir -p build && cd build; fi
5043
if [[ $DEBIAN_BUILD != true ]]; then cmake -DADDONS_TO_BUILD=${app_id} -DADDON_SRC_PREFIX=${{ github.workspace }} -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=${{ github.workspace }}/xbmc/addons -DPACKAGE_ZIP=1 ${{ github.workspace }}/xbmc/cmake/addons; fi
51-
if [[ $DEBIAN_BUILD == true ]]; then wget https://raw.githubusercontent.com/xbmc/xbmc/master/xbmc/addons/kodi-dev-kit/tools/debian-addon-package-test.sh && chmod +x ./debian-addon-package-test.sh; fi
44+
if [[ $DEBIAN_BUILD == true ]]; then wget https://raw.githubusercontent.com/xbmc/xbmc/Nexus/xbmc/addons/kodi-dev-kit/tools/debian-addon-package-test.sh && chmod +x ./debian-addon-package-test.sh; fi
5245
if [[ $DEBIAN_BUILD == true ]]; then sudo apt-get build-dep ${{ github.workspace }}/${app_id}; fi
5346
- name: Build
5447
env:

.github/workflows/changelog-and-release.yml

+7-7
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,14 @@ jobs:
3939

4040
# Checkout the current repository into a directory (repositories name)
4141
- name: Checkout Repository
42-
uses: actions/checkout@v2
42+
uses: actions/checkout@v4
4343
with:
4444
fetch-depth: 0
4545
path: ${{ github.event.repository.name }}
4646

4747
# Checkout the required scripts from kodi-pvr/pvr-scripts into the 'scripts' directory
4848
- name: Checkout Scripts
49-
uses: actions/checkout@v2
49+
uses: actions/checkout@v4
5050
with:
5151
fetch-depth: 0
5252
repository: kodi-pvr/pvr-scripts
@@ -60,7 +60,7 @@ jobs:
6060
6161
# Setup python version 3.9
6262
- name: Set up Python
63-
uses: actions/setup-python@v2
63+
uses: actions/setup-python@v5
6464
with:
6565
python-version: '3.9'
6666

@@ -97,12 +97,12 @@ jobs:
9797
changes="${changes//$'\r'/'%0D'}"
9898
changes="${changes//$'\\n'/'%0A'}"
9999
changes="${changes//$'\\r'/'%0D'}"
100-
echo ::set-output name=changes::$changes
100+
echo "changes=$changes" >> $GITHUB_OUTPUT
101101
version=$(xmlstarlet fo -R "$(find . -name addon.xml.in)" | xmlstarlet sel -t -v 'string(/addon/@version)')
102-
echo ::set-output name=version::$version
102+
echo "version=$version" >> $GITHUB_OUTPUT
103103
branch=$(echo ${GITHUB_REF#refs/heads/})
104-
echo ::set-output name=branch::$branch
105-
echo ::set-output name=today::$(date +'%Y-%m-%d')
104+
echo "branch=$branch" >> $GITHUB_OUTPUT
105+
echo "today=$(date +'%Y-%m-%d')" >> $GITHUB_OUTPUT
106106
working-directory: ${{ github.event.repository.name }}
107107

108108
# Create a commit of the incremented version and changelog, news changes

.github/workflows/increment-version.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -15,20 +15,20 @@ jobs:
1515
steps:
1616

1717
- name: Checkout Repository
18-
uses: actions/checkout@v2
18+
uses: actions/checkout@v4
1919
with:
2020
fetch-depth: 0
2121
path: ${{ github.event.repository.name }}
2222

2323
- name: Checkout Scripts
24-
uses: actions/checkout@v2
24+
uses: actions/checkout@v4
2525
with:
2626
fetch-depth: 0
2727
repository: xbmc/weblate-supplementary-scripts
2828
path: scripts
2929

3030
- name: Set up Python
31-
uses: actions/setup-python@v2
31+
uses: actions/setup-python@v5
3232
with:
3333
python-version: '3.9'
3434

@@ -48,7 +48,7 @@ jobs:
4848
id: required-variables
4949
run: |
5050
version=$(xmlstarlet fo -R "$(find . -name addon.xml.in)" | xmlstarlet sel -t -v 'string(/addon/@version)')
51-
echo ::set-output name=version::$version
51+
echo "version=$version" >> $GITHUB_OUTPUT
5252
working-directory: ${{ github.event.repository.name }}
5353

5454
- name: Create PR for incrementing add-on versions

.github/workflows/release.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414

1515
# Checkout the current repository into a directory (repositories name)
1616
- name: Checkout Repository
17-
uses: actions/checkout@v2
17+
uses: actions/checkout@v4
1818
with:
1919
fetch-depth: 0
2020
path: ${{ github.event.repository.name }}
@@ -42,11 +42,11 @@ jobs:
4242
changes="${changes//$'\r'/'%0D'}"
4343
changes="${changes//$'\\n'/'%0A'}"
4444
changes="${changes//$'\\r'/'%0D'}"
45-
echo ::set-output name=changes::$changes
45+
echo "changes=$changes" >> $GITHUB_OUTPUT
4646
version=$(xmlstarlet fo -R "$(find . -name addon.xml.in)" | xmlstarlet sel -t -v 'string(/addon/@version)')
47-
echo ::set-output name=version::$version
47+
echo "version=$version" >> $GITHUB_OUTPUT
4848
branch=$(echo ${GITHUB_REF#refs/heads/})
49-
echo ::set-output name=branch::$branch
49+
echo "branch=$branch" >> $GITHUB_OUTPUT
5050
working-directory: ${{ github.event.repository.name }}
5151

5252
# Create a release at {steps.required-variables.outputs.branch}

.github/workflows/sync-addon-metadata-translations.yml

+4-3
Original file line numberDiff line numberDiff line change
@@ -21,18 +21,18 @@ jobs:
2121
steps:
2222

2323
- name: Checkout repository
24-
uses: actions/checkout@v2
24+
uses: actions/checkout@v4
2525
with:
2626
path: project
2727

2828
- name: Checkout sync_addon_metadata_translations repository
29-
uses: actions/checkout@v2
29+
uses: actions/checkout@v4
3030
with:
3131
repository: xbmc/sync_addon_metadata_translations
3232
path: sync_addon_metadata_translations
3333

3434
- name: Set up Python ${{ matrix.python-version }}
35-
uses: actions/setup-python@v2
35+
uses: actions/setup-python@v5
3636
with:
3737
python-version: ${{ matrix.python-version }}
3838

@@ -55,3 +55,4 @@ jobs:
5555
branch: amt-sync
5656
delete-branch: true
5757
path: ./project
58+
reviewers: gade01

0 commit comments

Comments
 (0)