Skip to content

Commit 246b52a

Browse files
authored
Update GitHub actions (#203)
* update GitHub actions Signed-off-by: Nicolas Rol <[email protected]> * update remaining GitHub actions Signed-off-by: Nicolas Rol <[email protected]> --------- Signed-off-by: Nicolas Rol <[email protected]>
1 parent b724d91 commit 246b52a

File tree

4 files changed

+39
-39
lines changed

4 files changed

+39
-39
lines changed

Diff for: .github/workflows/dev-ci.yml

+15-15
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,13 @@ jobs:
2929

3030
steps:
3131
- name: Set up JDK 17
32-
uses: actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9 # v4.2.1
32+
uses: actions/setup-java@3a4f6e1af504cf6a31855fa899c6aa5355ba6c12 # v4.7.0
3333
with:
3434
distribution: 'temurin'
3535
java-version: '17'
3636

3737
- name: Checkout sources
38-
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
38+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
3939

4040
- name: Build with Maven (Ubuntu)
4141
if: matrix.os == 'ubuntu-latest'
@@ -67,7 +67,7 @@ jobs:
6767

6868
- name: Upload Metrix iTools archive
6969
if: ${{ matrix.os == 'ubuntu-latest' && github.event_name == 'workflow_dispatch' && inputs.generate_artifacts }}
70-
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # 4.3.3
70+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # 4.6.2
7171
with:
7272
name: itools-metrix-${{ env.MAVEN_PROJECT_VERSION }}
7373
path: ${{ github.workspace }}/metrix-distribution/target/metrix
@@ -77,7 +77,7 @@ jobs:
7777
runs-on: ubuntu-latest
7878
steps:
7979
- name: Checkout
80-
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
80+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
8181

8282
- name: Build the Docker image
8383
run: |
@@ -96,7 +96,7 @@ jobs:
9696
9797
- name: Upload Metrix Simulator archive
9898
if: ${{ github.event_name == 'workflow_dispatch' && inputs.generate_artifacts }}
99-
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # 4.3.3
99+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # 4.6.2
100100
with:
101101
name: metrix-simulator-centos7
102102
path: |
@@ -115,7 +115,7 @@ jobs:
115115
dnf --enablerepo=ol8_codeready_builder install boost-static
116116
117117
- name: Checkout sources
118-
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
118+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
119119

120120
- name: Configure 3rd parties
121121
run: >
@@ -139,7 +139,7 @@ jobs:
139139

140140
- name: Upload Metrix Simulator archive
141141
if: ${{ github.event_name == 'workflow_dispatch' && inputs.generate_artifacts }}
142-
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # 4.3.3
142+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # 4.6.2
143143
with:
144144
name: metrix-simulator-ol8
145145
path: |
@@ -156,7 +156,7 @@ jobs:
156156
sudo apt-get install -y libboost-all-dev
157157
158158
- name: Checkout sources
159-
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
159+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
160160

161161
- name: Configure 3rd parties
162162
run: >
@@ -180,7 +180,7 @@ jobs:
180180

181181
- name: Upload Metrix Simulator archive
182182
if: ${{ github.event_name == 'workflow_dispatch' && inputs.generate_artifacts }}
183-
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # 4.3.3
183+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # 4.6.2
184184
with:
185185
name: metrix-simulator-ubuntu
186186
path: |
@@ -205,7 +205,7 @@ jobs:
205205
boost-installer.exe /dir=%BOOST_ROOT% /sp- /verysilent /suppressmsgboxes /norestart
206206
207207
- name: Checkout sources
208-
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 #v4.1.6
208+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
209209

210210
- name: Configure 3rd parties
211211
run: >
@@ -229,7 +229,7 @@ jobs:
229229

230230
- name: Upload Metrix Simulator archive
231231
if: ${{ github.event_name == 'workflow_dispatch' && inputs.generate_artifacts }}
232-
uses: actions/upload-artifact@v3
232+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # 4.6.2
233233
with:
234234
name: metrix-simulator-windows
235235
path: |
@@ -241,7 +241,7 @@ jobs:
241241
runs-on: ubuntu-latest
242242
steps:
243243
- name: Install Java 17
244-
uses: actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9 # v4.2.1
244+
uses: actions/setup-java@3a4f6e1af504cf6a31855fa899c6aa5355ba6c12 # v4.7.0
245245
with:
246246
distribution: 'temurin'
247247
java-version: '17'
@@ -273,7 +273,7 @@ jobs:
273273
sudo apt-get install -y libboost-all-dev
274274
275275
- name: Checkout sources
276-
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
276+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
277277

278278
- name: Configure 3rd parties
279279
run: >
@@ -328,7 +328,7 @@ jobs:
328328
sudo update-alternatives --install /usr/bin/clang-tidy clang-tidy /usr/bin/clang-tidy-15 100
329329
330330
- name: Checkout sources
331-
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
331+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
332332

333333
- name: Git fetch base_ref and head_ref
334334
run: |
@@ -366,7 +366,7 @@ jobs:
366366
367367
- name: Upload Clang Tidy Report (Modified C++ sources in PR)
368368
if: steps.clang-pr.outputs.report_exists
369-
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # 4.3.3
369+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # 4.6.2
370370
with:
371371
name: ${{ steps.clang-pr.outputs.report_name }}
372372
path: ${{ steps.clang-pr.outputs.report_path }}

Diff for: .github/workflows/full-ci.yml

+10-10
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,13 @@ jobs:
2929

3030
steps:
3131
- name: Set up JDK 17
32-
uses: actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9 # v4.2.1
32+
uses: actions/setup-java@3a4f6e1af504cf6a31855fa899c6aa5355ba6c12 # v4.7.0
3333
with:
3434
distribution: 'temurin'
3535
java-version: '17'
3636

3737
- name: Checkout sources
38-
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
38+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
3939

4040
- name: Build with Maven (Ubuntu)
4141
if: matrix.os == 'ubuntu-latest'
@@ -66,7 +66,7 @@ jobs:
6666
runs-on: ubuntu-latest
6767
steps:
6868
- name: Checkout
69-
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
69+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
7070

7171
- name: Build the Docker image
7272
run: |
@@ -95,7 +95,7 @@ jobs:
9595
dnf --enablerepo=ol8_codeready_builder install boost-static
9696
9797
- name: Checkout sources
98-
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
98+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
9999

100100
- name: Configure 3rd parties
101101
run: >
@@ -127,7 +127,7 @@ jobs:
127127
sudo apt-get install -y libboost-all-dev
128128
129129
- name: Checkout sources
130-
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
130+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
131131

132132
- name: Configure 3rd parties
133133
run: >
@@ -167,7 +167,7 @@ jobs:
167167
boost-installer.exe /dir=%BOOST_ROOT% /sp- /verysilent /suppressmsgboxes /norestart
168168
169169
- name: Checkout sources
170-
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 #v4.1.6
170+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
171171

172172
- name: Configure 3rd parties
173173
run: >
@@ -194,7 +194,7 @@ jobs:
194194
runs-on: ubuntu-latest
195195
steps:
196196
- name: Install Java 17
197-
uses: actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9 # v4.2.1
197+
uses: actions/setup-java@3a4f6e1af504cf6a31855fa899c6aa5355ba6c12 # v4.7.0
198198
with:
199199
distribution: 'temurin'
200200
java-version: '17'
@@ -226,7 +226,7 @@ jobs:
226226
sudo apt-get install -y libboost-all-dev
227227
228228
- name: Checkout sources
229-
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
229+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
230230

231231
- name: Configure 3rd parties
232232
run: >
@@ -280,7 +280,7 @@ jobs:
280280
sudo update-alternatives --install /usr/bin/clang-tidy clang-tidy /usr/bin/clang-tidy-15 100
281281
282282
- name: Checkout sources
283-
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
283+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
284284

285285
- name: Configure 3rd parties
286286
run: >
@@ -307,7 +307,7 @@ jobs:
307307
clang-tidy $METRIX_CPP_SOURCES -p $GITHUB_WORKSPACE/metrix-simulator/build > $REPORT_NAME || true
308308
309309
- name: Upload Clang Tidy Report (All C++ sources)
310-
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # 4.3.3
310+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # 4.6.2
311311
with:
312312
name: ${{ steps.clang-pr.outputs.report_name }}
313313
path: ${{ steps.clang-pr.outputs.report_path }}

Diff for: .github/workflows/release-ci.yml

+6-6
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@ jobs:
1515

1616
steps:
1717
- name: Set up JDK 17
18-
uses: actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9 # v4.2.1
18+
uses: actions/setup-java@3a4f6e1af504cf6a31855fa899c6aa5355ba6c12 # v4.7.0
1919
with:
2020
distribution: 'temurin'
2121
java-version: '17'
2222

2323
- name: Checkout sources
24-
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
24+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2525

2626
- name: Package with Maven
2727
run: ./mvnw --batch-mode package
@@ -36,7 +36,7 @@ jobs:
3636
runs-on: ubuntu-latest
3737
steps:
3838
- name: Checkout
39-
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
39+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
4040

4141
- name: Build the Docker image
4242
run: |
@@ -80,7 +80,7 @@ jobs:
8080
dnf --enablerepo=ol8_codeready_builder install boost-static
8181
8282
- name: Checkout sources
83-
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
83+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
8484

8585
- name: Configure 3rd parties
8686
run: >
@@ -127,7 +127,7 @@ jobs:
127127
sudo apt-get install -y libboost-all-dev
128128
129129
- name: Checkout sources
130-
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
130+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
131131

132132
- name: Configure 3rd parties
133133
run: >
@@ -182,7 +182,7 @@ jobs:
182182
boost-installer.exe /dir=%BOOST_ROOT% /sp- /verysilent /suppressmsgboxes /norestart
183183
184184
- name: Checkout sources
185-
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 #v4.1.6
185+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
186186

187187
- name: Configure 3rd parties
188188
run: >

Diff for: .github/workflows/snapshot-ci.yml

+8-8
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525

2626
steps:
2727
- name: Set up JDK 17
28-
uses: actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9 # v4.2.1
28+
uses: actions/setup-java@3a4f6e1af504cf6a31855fa899c6aa5355ba6c12 # v4.7.0
2929
with:
3030
distribution: 'temurin'
3131
java-version: '17'
@@ -41,7 +41,7 @@ jobs:
4141
4242
# Build powsybl-core on main branch
4343
- name: Checkout core sources
44-
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
44+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
4545
with:
4646
repository: powsybl/powsybl-core
4747
ref: main
@@ -59,7 +59,7 @@ jobs:
5959
# The script check_integration_branch.sh is located in the workflow folder of the repository
6060
# It is necessary for checking out the integration branch if it exists
6161
- name: Checkout script
62-
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
62+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
6363
with:
6464
sparse-checkout: |
6565
.github
@@ -71,7 +71,7 @@ jobs:
7171
run: ${{ env.SCRIPTS_PATH }}/check_integration_branch.sh "https://github.com/powsybl/powsybl-metrix.git" ${{ env.CORE_VERSION }}
7272

7373
- name: Checkout powsybl-metrix
74-
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
74+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
7575
with:
7676
repository: powsybl/powsybl-metrix
7777
ref: ${{ env.INTEGRATION_BRANCH }}
@@ -105,7 +105,7 @@ jobs:
105105

106106
- name: Upload Metrix iTools archive
107107
if: ${{ matrix.os == 'ubuntu-latest' && github.event_name == 'workflow_dispatch' && inputs.generate_artifacts }}
108-
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # 4.3.3
108+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # 4.6.2
109109
with:
110110
name: itools-metrix-${{ env.MAVEN_PROJECT_VERSION }}
111111
path: ${{ github.workspace }}/powsybl-metrix/metrix-distribution/target/metrix
@@ -143,7 +143,7 @@ jobs:
143143

144144
- name: Upload Metrix Simulator archive
145145
if: ${{ matrix.os == 'ubuntu-latest' && github.event_name == 'workflow_dispatch' && inputs.generate_artifacts }}
146-
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # 4.3.3
146+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # 4.6.2
147147
with:
148148
name: metrix-simulator-ubuntu-${{ env.MAVEN_PROJECT_VERSION }}
149149
path: |
@@ -157,7 +157,7 @@ jobs:
157157
158158
- name: Upload job result
159159
if: always()
160-
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # 4.3.3
160+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # 4.6.2
161161
with:
162162
name: job-results_${{ matrix.os }}
163163
path: job_result_${{ matrix.os }}.txt
@@ -173,7 +173,7 @@ jobs:
173173
if: always()
174174
steps:
175175
- name: Download job results
176-
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
176+
uses: actions/download-artifact@95815c38cf2ff2164869cbab79da8d1f422bc89e # v4.2.1
177177

178178
- name: Combine job results
179179
run: |

0 commit comments

Comments
 (0)