Skip to content

Commit d2b3188

Browse files
Copilotvharseko
andauthored
chore: bump GitHub Actions to latest major versions (#83)
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: vharseko <6818498+vharseko@users.noreply.github.com>
1 parent d572d77 commit d2b3188

3 files changed

Lines changed: 43 additions & 43 deletions

File tree

.github/workflows/build.yml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,17 @@ jobs:
1313
os: [ 'ubuntu-latest', 'macos-latest', 'windows-latest' ]
1414
fail-fast: false
1515
steps:
16-
- uses: actions/checkout@v4
16+
- uses: actions/checkout@v6
1717
with:
1818
fetch-depth: 0
1919
submodules: recursive
2020
- name: Java ${{ matrix.Java }} (${{ matrix.os }})
21-
uses: actions/setup-java@v4
21+
uses: actions/setup-java@v5
2222
with:
2323
java-version: ${{ matrix.java }}
2424
distribution: 'zulu'
2525
- name: Cache Maven packages
26-
uses: actions/cache@v4
26+
uses: actions/cache@v5
2727
with:
2828
path: ~/.m2/repository
2929
key: ${{ runner.os }}-m2-repository-${{ hashFiles('**/pom.xml') }}
@@ -66,15 +66,15 @@ jobs:
6666
findstr "ConnectorServer listening on" openicf\logs\ConnectorServer.log
6767
findstr " ERROR " openicf\logs\ConnectorServer.log | find /c '"ERROR"' | findstr "0"
6868
- name: Upload failure artifacts
69-
uses: actions/upload-artifact@v4
69+
uses: actions/upload-artifact@v6
7070
if: ${{ failure() }}
7171
with:
7272
name: failure-${{ matrix.os }}-${{ matrix.java }}
7373
retention-days: 1
7474
path: |
7575
**
7676
- name: Upload artifacts
77-
uses: actions/upload-artifact@v4
77+
uses: actions/upload-artifact@v6
7878
with:
7979
name: ${{ matrix.os }}-${{ matrix.java }}
8080
retention-days: 5
@@ -96,7 +96,7 @@ jobs:
9696
ports:
9797
- 5000:5000
9898
steps:
99-
- uses: actions/checkout@v4
99+
- uses: actions/checkout@v6
100100
with:
101101
fetch-depth: 0
102102
- name: Get latest release version
@@ -106,20 +106,20 @@ jobs:
106106
echo "release_version=$git_version_last" >> $GITHUB_ENV
107107
- name: Docker meta
108108
id: meta
109-
uses: docker/metadata-action@v5
109+
uses: docker/metadata-action@v6
110110
with:
111111
images: |
112112
localhost:5000/${{ github.repository }}
113113
tags: |
114114
type=raw,value=${{ env.release_version }}
115115
- name: Set up QEMU
116-
uses: docker/setup-qemu-action@v3
116+
uses: docker/setup-qemu-action@v4
117117
- name: Set up Docker Buildx
118-
uses: docker/setup-buildx-action@v3
118+
uses: docker/setup-buildx-action@v4
119119
with:
120120
driver-opts: network=host
121121
- name: Build image (default)
122-
uses: docker/build-push-action@v5
122+
uses: docker/build-push-action@v7
123123
continue-on-error: true
124124
with:
125125
context: .
@@ -143,7 +143,7 @@ jobs:
143143
ports:
144144
- 5000:5000
145145
steps:
146-
- uses: actions/checkout@v4
146+
- uses: actions/checkout@v6
147147
with:
148148
fetch-depth: 0
149149
- name: Get latest release version
@@ -153,22 +153,22 @@ jobs:
153153
echo "release_version=$git_version_last" >> $GITHUB_ENV
154154
- name: Docker meta
155155
id: meta
156-
uses: docker/metadata-action@v5
156+
uses: docker/metadata-action@v6
157157
with:
158158
images: |
159159
localhost:5000/${{ github.repository }}
160160
tags: |
161161
type=raw,value=alpine
162162
type=raw,value=${{ env.release_version }}-alpine
163163
- name: Set up QEMU
164-
uses: docker/setup-qemu-action@v3
164+
uses: docker/setup-qemu-action@v4
165165
- name: Set up Docker Buildx
166-
uses: docker/setup-buildx-action@v3
166+
uses: docker/setup-buildx-action@v4
167167
with:
168168
driver-opts: network=host
169169
- name: Build image
170170
continue-on-error: true
171-
uses: docker/build-push-action@v5
171+
uses: docker/build-push-action@v7
172172
with:
173173
context: .
174174
file: ./Dockerfile-alpine

.github/workflows/deploy.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16,21 +16,21 @@ jobs:
1616
env:
1717
GITHUB_CONTEXT: ${{ toJSON(github) }}
1818
run: echo "$GITHUB_CONTEXT"
19-
- uses: actions/checkout@v4
19+
- uses: actions/checkout@v6
2020
with:
2121
fetch-depth: 0
2222
submodules: recursive
2323
ref: ${{ github.event.workflow_run.head_branch }}
2424
- name: Set up Java for publishing to Maven Central Repository OSS
25-
uses: actions/setup-java@v4
25+
uses: actions/setup-java@v5
2626
with:
2727
java-version: ${{ github.event.workflow_run.head_branch == 'sustaining/1.8.x' && '8' || '11'}}
2828
distribution: 'temurin'
2929
server-id: ossrh
3030
server-username: MAVEN_USERNAME
3131
server-password: MAVEN_PASSWORD
3232
- name: Cache Maven packages
33-
uses: actions/cache@v4
33+
uses: actions/cache@v5
3434
with:
3535
path: ~/.m2/repository
3636
key: ${{ runner.os }}-m2-repository-${{ hashFiles('**/pom.xml') }}
@@ -57,42 +57,42 @@ jobs:
5757
if: ${{ github.event.workflow_run.event=='push' && env.MAVEN_USERNAME!='' && env.MAVEN_PASSWORD!=''}}
5858
run: mvn --batch-mode --errors --update-snapshots -Dgpg.passphrase=${{ secrets.GPG_PASSPHRASE }} deploy --file pom.xml
5959
- name: Upload artifacts
60-
uses: actions/upload-artifact@v4
60+
uses: actions/upload-artifact@v6
6161
with:
6262
name: OpenICF Framework
6363
path: OpenICF-java-framework/openicf-zip/target/*.zip
6464
- name: Upload artifacts
65-
uses: actions/upload-artifact@v4
65+
uses: actions/upload-artifact@v6
6666
with:
6767
name: OpenICF CSV File Connector
6868
path: OpenICF-csvfile-connector/target/*.jar
6969
- name: Upload artifacts
70-
uses: actions/upload-artifact@v4
70+
uses: actions/upload-artifact@v6
7171
with:
7272
name: OpenICF Database Connector
7373
path: OpenICF-databasetable-connector/target/*.jar
7474
- name: Upload artifacts
75-
uses: actions/upload-artifact@v4
75+
uses: actions/upload-artifact@v6
7676
with:
7777
name: OpenICF Groovy Connector
7878
path: OpenICF-groovy-connector/target/*.jar
7979
- name: Upload artifacts
80-
uses: actions/upload-artifact@v4
80+
uses: actions/upload-artifact@v6
8181
with:
8282
name: OpenICF Kerberos connector
8383
path: OpenICF-kerberos-connector/target/*.jar
8484
- name: Upload artifacts
85-
uses: actions/upload-artifact@v4
85+
uses: actions/upload-artifact@v6
8686
with:
8787
name: OpenICF LDAP Connector
8888
path: OpenICF-ldap-connector/target/*.jar
8989
- name: Upload artifacts
90-
uses: actions/upload-artifact@v4
90+
uses: actions/upload-artifact@v6
9191
with:
9292
name: OpenICF SSH Connector
9393
path: OpenICF-ssh-connector/target/*.jar
9494
- name: Upload artifacts
95-
uses: actions/upload-artifact@v4
95+
uses: actions/upload-artifact@v6
9696
with:
9797
name: OpenICF XML Connector
9898
path: OpenICF-xml-connector/target/*.jar

.github/workflows/release.yml

Lines changed: 17 additions & 17 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@v4
27+
uses: actions/setup-java@v5
2828
with:
2929
java-version: ${{ github.event.workflow_run.head_branch == 'sustaining/1.8.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') }}
@@ -82,14 +82,14 @@ jobs:
8282
needs:
8383
- release-maven
8484
steps:
85-
- uses: actions/checkout@v4
85+
- uses: actions/checkout@v6
8686
with:
8787
ref: ${{ github.event.inputs.releaseVersion }}
8888
fetch-depth: 1
8989
submodules: recursive
9090
- name: Docker meta
9191
id: meta
92-
uses: docker/metadata-action@v5
92+
uses: docker/metadata-action@v6
9393
with:
9494
images: |
9595
${{ github.repository }}
@@ -98,22 +98,22 @@ jobs:
9898
type=raw,value=latest
9999
type=raw,value=${{ github.event.inputs.releaseVersion }}
100100
- name: Set up QEMU
101-
uses: docker/setup-qemu-action@v3
101+
uses: docker/setup-qemu-action@v4
102102
- name: Set up Docker Buildx
103-
uses: docker/setup-buildx-action@v3
103+
uses: docker/setup-buildx-action@v4
104104
- name: Login to DockerHub
105-
uses: docker/login-action@v3
105+
uses: docker/login-action@v4
106106
with:
107107
username: ${{ secrets.DOCKER_USERNAME }}
108108
password: ${{ secrets.DOCKER_PASSWORD }}
109109
- name: Login to GHCR
110-
uses: docker/login-action@v3
110+
uses: docker/login-action@v4
111111
with:
112112
registry: ghcr.io
113113
username: ${{ github.repository_owner }}
114114
password: ${{ secrets.GITHUB_TOKEN }}
115115
- name: Build and push image
116-
uses: docker/build-push-action@v5
116+
uses: docker/build-push-action@v7
117117
continue-on-error: true
118118
with:
119119
context: .
@@ -130,14 +130,14 @@ jobs:
130130
needs:
131131
- release-maven
132132
steps:
133-
- uses: actions/checkout@v4
133+
- uses: actions/checkout@v6
134134
with:
135135
ref: ${{ github.event.inputs.releaseVersion }}
136136
fetch-depth: 1
137137
submodules: recursive
138138
- name: Docker meta
139139
id: meta
140-
uses: docker/metadata-action@v5
140+
uses: docker/metadata-action@v6
141141
with:
142142
images: |
143143
${{ github.repository }}
@@ -146,23 +146,23 @@ jobs:
146146
type=raw,value=alpine
147147
type=raw,value=${{ github.event.inputs.releaseVersion }}-alpine
148148
- name: Set up QEMU
149-
uses: docker/setup-qemu-action@v3
149+
uses: docker/setup-qemu-action@v4
150150
- name: Set up Docker Buildx
151-
uses: docker/setup-buildx-action@v3
151+
uses: docker/setup-buildx-action@v4
152152
- name: Login to DockerHub
153-
uses: docker/login-action@v3
153+
uses: docker/login-action@v4
154154
with:
155155
username: ${{ secrets.DOCKER_USERNAME }}
156156
password: ${{ secrets.DOCKER_PASSWORD }}
157157
- name: Login to GHCR
158-
uses: docker/login-action@v3
158+
uses: docker/login-action@v4
159159
with:
160160
registry: ghcr.io
161161
username: ${{ github.repository_owner }}
162162
password: ${{ secrets.GITHUB_TOKEN }}
163163
- name: Build and push image
164164
continue-on-error: true
165-
uses: docker/build-push-action@v5
165+
uses: docker/build-push-action@v7
166166
with:
167167
context: .
168168
file: ./Dockerfile-alpine

0 commit comments

Comments
 (0)