Skip to content

Commit c44ba33

Browse files
authored
Merge pull request #194 from phunkyfish/github-actions-v4
[github] Updated deprecated workflows actions
2 parents b3d69b8 + 1bd10c7 commit c44ba33

5 files changed

+21
-20
lines changed

.github/workflows/build.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,13 @@ jobs:
2424
if [[ $DEBIAN_BUILD == true ]]; then sudo apt-get update; fi
2525
if [[ $DEBIAN_BUILD == true ]]; then sudo apt-get install fakeroot; fi
2626
- name: Checkout Kodi repo
27-
uses: actions/checkout@v2
27+
uses: actions/checkout@v4
2828
with:
2929
repository: xbmc/xbmc
3030
ref: master
3131
path: xbmc
3232
- name: Checkout add-on repo
33-
uses: actions/checkout@v2
33+
uses: actions/checkout@v4
3434
with:
3535
path: ${{ env.app_id }}
3636
- name: Configure

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

+8-8
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
@@ -133,7 +133,7 @@ jobs:
133133
shell: bash
134134

135135
# Create a release at {steps.required-variables.outputs.branch}
136-
# - tag and release name format: {steps.required-variables.outputs.version}-{steps.required-variables.outputs.branch} ie. 20.0.0-Nexus
136+
# - tag and release name format: {steps.required-variables.outputs.version}-{steps.required-variables.outputs.branch} ie. 21.0.0-Omega
137137
# - release body: {steps.required-variables.outputs.changes}
138138
- name: Create Release
139139
id: create-release

.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

+5-5
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,15 +42,15 @@ 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}
53-
# - tag and release name format: {steps.required-variables.outputs.version}-{steps.required-variables.outputs.branch} ie. 20.0.0-Nexus
53+
# - tag and release name format: {steps.required-variables.outputs.version}-{steps.required-variables.outputs.branch} ie. 21.0.0-Omega
5454
# - release body: {steps.required-variables.outputs.changes}
5555
- name: Create Release
5656
id: create-release

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

+2-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
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)