Skip to content

Commit d03392a

Browse files
committed
💯 Fixed github actions
1 parent eec521f commit d03392a

File tree

3 files changed

+15
-10
lines changed

3 files changed

+15
-10
lines changed

.github/workflows/branch_naming_policy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
- reopened
1010
jobs:
1111
branch-naming-policy:
12-
runs-on: ubuntu-latest
12+
runs-on: ubuntu-24.04
1313
steps:
1414
- name: Checkout
1515
uses: actions/checkout@v3

.github/workflows/build_test_analyze.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ on:
1515
jobs:
1616
# Build test and analyze source code
1717
build_test_analyze:
18-
runs-on: ubuntu-22.04
18+
runs-on: ubuntu-24.04
1919
strategy:
2020
matrix:
2121
java-version: [21]
@@ -30,6 +30,12 @@ jobs:
3030
distribution: "adopt"
3131
java-version: ${{ matrix.java-version }}
3232

33+
# Setup Python
34+
- name: Setup Python
35+
uses: actions/setup-python@v5
36+
with:
37+
python-version: '3.12'
38+
3339
# Install all required .NET SDK versions
3440
- name: Install .NET SDKs (8.0, 9.0 and 10.0)
3541
uses: actions/setup-dotnet@v1
@@ -42,7 +48,7 @@ jobs:
4248
# Install dependencies
4349
- name: Install dependencies
4450
run: |
45-
sudo apt install -y make python3-pip python3-rpm
51+
sudo apt install -y make python3-rpm
4652
dotnet tool install --global dotnet-sonarscanner
4753
dotnet tool install --global Cake.Tool
4854
dotnet tool install --global JetBrains.dotCover.CommandLineTools

.github/workflows/deploy.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,17 @@ jobs:
1111
runs-on: ubuntu-latest
1212
strategy:
1313
matrix:
14-
dotnet-version: [8.0.x]
14+
dotnet-version: [10.0.x]
1515
steps:
1616
- name: Checkout Repository
1717
uses: actions/checkout@v4
18-
18+
1919
# Setup .NET SDK
2020
- name: Set up .NET SDK ${{ matrix.dotnet-version }}
2121
uses: actions/setup-dotnet@v1
2222
with:
2323
dotnet-version: ${{ matrix.dotnet-version }}
24-
24+
2525
# Setup cake tool
2626
- name: Setup cake tool
2727
run: dotnet tool install --global Cake.Tool
@@ -32,10 +32,10 @@ jobs:
3232
run: |
3333
# Copy Licence
3434
cp LICENSE NETCore.Keycloak.Client/
35-
35+
3636
# Build project
3737
dotnet cake build.cake --target=build
38-
38+
3939
# Deploy nuget package
4040
- name: Deploy nuget package
4141
if: success()
@@ -44,7 +44,6 @@ jobs:
4444
run: |
4545
# Extract nuget package version
4646
NUGET_PKG_VERSION=$(cat NETCore.Keycloak.Client/NETCore.Keycloak.Client.csproj | grep "PackageVersion" | awk -F '>' '{print $2}' | awk -F '<' '{print $1}')
47-
47+
4848
# Deploy package
4949
dotnet nuget push NETCore.Keycloak.Client/bin/Release/Keycloak.NETCore.Client.${NUGET_PKG_VERSION}.nupkg --api-key $NUGET_API_KEY --source https://api.nuget.org/v3/index.json
50-

0 commit comments

Comments
 (0)