Skip to content

Commit a779901

Browse files
Copilotvharseko
andauthored
chore: update GitHub Actions to latest major versions
Agent-Logs-Url: https://github.com/OpenIdentityPlatform/OpenAM-JEE-Agents/sessions/07863e8c-81c2-4d19-bac0-2ea823ae2796 Co-authored-by: vharseko <6818498+vharseko@users.noreply.github.com>
1 parent da02a69 commit a779901

3 files changed

Lines changed: 12 additions & 12 deletions

File tree

.github/workflows/build.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,17 @@ jobs:
1515
os: [ 'ubuntu-latest', 'macos-latest', 'windows-latest' ]
1616
fail-fast: false
1717
steps:
18-
- uses: actions/checkout@v4
18+
- uses: actions/checkout@v6
1919
with:
2020
fetch-depth: 0
2121
submodules: recursive
2222
- name: Java ${{ matrix.Java }} (${{ matrix.os }})
23-
uses: actions/setup-java@v3
23+
uses: actions/setup-java@v5
2424
with:
2525
java-version: ${{ matrix.java }}
2626
distribution: 'zulu'
2727
- name: Cache Maven packages
28-
uses: actions/cache@v4
28+
uses: actions/cache@v5
2929
with:
3030
path: ~/.m2/repository
3131
key: ${{ runner.os }}-m2-repository-${{ hashFiles('**/pom.xml') }}
@@ -38,7 +38,7 @@ jobs:
3838
MAVEN_OPTS: -Dhttps.protocols=TLSv1.2 -Dmaven.wagon.httpconnectionManager.ttlSeconds=120 -Dmaven.wagon.http.retryHandler.requestSentEnabled=true -Dmaven.wagon.http.retryHandler.count=10
3939
run: mvn --batch-mode --errors --update-snapshots verify --file pom.xml -P integration-test
4040
- name: Upload artifacts
41-
uses: actions/upload-artifact@v4
41+
uses: actions/upload-artifact@v7
4242
with:
4343
name: ${{ matrix.os }}-${{ matrix.java }}
4444
retention-days: 5

.github/workflows/deploy.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,21 +15,21 @@ jobs:
1515
env:
1616
GITHUB_CONTEXT: ${{ toJSON(github) }}
1717
run: echo "$GITHUB_CONTEXT"
18-
- uses: actions/checkout@v4
18+
- uses: actions/checkout@v6
1919
with:
2020
fetch-depth: 0
2121
submodules: recursive
2222
ref: ${{ github.event.workflow_run.head_branch }}
2323
- name: Set up Java for publishing to Maven Central Repository OSS
24-
uses: actions/setup-java@v3
24+
uses: actions/setup-java@v5
2525
with:
2626
java-version: ${{ github.event.workflow_run.head_branch == 'sustaining/4.2.x' && '8' || '11'}}
2727
distribution: 'temurin'
2828
server-id: ossrh
2929
server-username: MAVEN_USERNAME
3030
server-password: MAVEN_PASSWORD
3131
- name: Cache Maven packages
32-
uses: actions/cache@v4
32+
uses: actions/cache@v5
3333
with:
3434
path: ~/.m2/repository
3535
key: ${{ runner.os }}-m2-repository-${{ hashFiles('**/pom.xml') }}
@@ -56,12 +56,12 @@ jobs:
5656
if: ${{ github.event.workflow_run.event=='push' && env.MAVEN_USERNAME!='' && env.MAVEN_PASSWORD!=''}}
5757
run: mvn --batch-mode --errors --update-snapshots -Dgpg.passphrase=${{ secrets.GPG_PASSPHRASE }} deploy --file pom.xml
5858
- name: Upload artifacts OpenAM-J2EE Distribution Kit, containing all distributable artifacts
59-
uses: actions/upload-artifact@v4
59+
uses: actions/upload-artifact@v7
6060
with:
6161
name: OpenAM Java Policy Agent (JAR with External Libraries)
6262
path: jee-agents-distribution/jee-agents-distribution-jar-with-lib/target/*.zip
6363
- name: Upload artifacts OpenAM-J2EE Distribution Kit, containing all distributable artifacts
64-
uses: actions/upload-artifact@v4
64+
uses: actions/upload-artifact@v7
6565
with:
6666
name: OpenAM Java Policy Agent (Uber JAR)
6767
path: jee-agents-distribution/jee-agents-distribution-uberjar/target/*.zip

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,20 +19,20 @@ jobs:
1919
env:
2020
GITHUB_CONTEXT: ${{ toJSON(github) }}
2121
run: echo "$GITHUB_CONTEXT"
22-
- uses: actions/checkout@v4
22+
- uses: actions/checkout@v6
2323
with:
2424
fetch-depth: 0
2525
submodules: recursive
2626
- name: Set up Java for publishing to Maven Central Repository OSS
27-
uses: actions/setup-java@v3
27+
uses: actions/setup-java@v5
2828
with:
2929
java-version: ${{ github.event.workflow_run.head_branch == 'sustaining/4.2.x' && '8' || '11'}}
3030
distribution: 'temurin'
3131
server-id: ossrh
3232
server-username: MAVEN_USERNAME
3333
server-password: MAVEN_PASSWORD
3434
- name: Cache Maven packages
35-
uses: actions/cache@v4
35+
uses: actions/cache@v5
3636
with:
3737
path: ~/.m2/repository
3838
key: ${{ runner.os }}-m2-repository-${{ hashFiles('**/pom.xml') }}

0 commit comments

Comments
 (0)