Skip to content

Commit ea63ebf

Browse files
Tim Allenwojciechcloudkubed
andauthored
Feature/GitHub actions update (#3897)
* Update clean_validation_envs.yml * azure login (#19) Co-authored-by: Wojciech <57405495+thewbuk@users.noreply.github.com> * GitHub actions update (#22) * azure login * reset cron * update action versions --------- Co-authored-by: wojciechcloudkubed <159798789+wojciechcloudkubed@users.noreply.github.com> * change conclusion action * add in teams --------- Co-authored-by: wojciechcloudkubed <159798789+wojciechcloudkubed@users.noreply.github.com>
1 parent de14165 commit ea63ebf

10 files changed

Lines changed: 59 additions & 56 deletions

File tree

.github/actions/devcontainer_run_command/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ runs:
132132
echo "AZURE_ENVIRONMENT=$azure_env" >> $GITHUB_ENV
133133
134134
- name: Azure Login
135-
uses: azure/login@v1
135+
uses: azure/login@v2
136136
if: contains(inputs.COMMAND, 'bootstrap') != true
137137
with:
138138
creds: ${{ inputs.AZURE_CREDENTIALS }}

.github/workflows/build_docker_images.yml

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -21,18 +21,18 @@ jobs:
2121
steps:
2222
- name: Upload Event File
2323
# this step is required to publish test results from forks
24-
uses: actions/upload-artifact@v3
24+
uses: actions/upload-artifact@v4
2525
with:
2626
name: Event File
2727
path: ${{ github.event_path }}
2828

2929
- name: Checkout
30-
uses: actions/checkout@v3
30+
uses: actions/checkout@v4
3131
with:
3232
persist-credentials: false
3333

3434
- name: Filter changes
35-
uses: dorny/paths-filter@v2
35+
uses: dorny/paths-filter@v3
3636
id: filter
3737
with:
3838
filters: |
@@ -93,7 +93,7 @@ jobs:
9393

9494
- name: Set up Docker Buildx
9595
id: buildx
96-
uses: docker/setup-buildx-action@v2
96+
uses: docker/setup-buildx-action@v3
9797

9898
# Unit Tests are executed by calling the 'test-results' target in the
9999
# Dockerfile's. Test runner exit codes must be swallowed (and kept) so we
@@ -105,7 +105,7 @@ jobs:
105105
if: |
106106
(steps.filter.outputs.api == 'true'
107107
|| github.event_name == 'workflow_dispatch')
108-
uses: docker/build-push-action@v4
108+
uses: docker/build-push-action@v5
109109
with:
110110
context: ./api_app/
111111
file: ./api_app/Dockerfile
@@ -116,7 +116,7 @@ jobs:
116116

117117
- name: "Check pytest failure file existence"
118118
id: check_api_test_result
119-
uses: andstor/file-existence-action@v2
119+
uses: andstor/file-existence-action@v3
120120
with:
121121
files: "test-results/pytest_api_unit_failed"
122122

@@ -125,7 +125,7 @@ jobs:
125125
(steps.filter.outputs.api == 'true'
126126
|| github.event_name == 'workflow_dispatch')
127127
&& steps.check_api_test_result.outputs.files_exists == 'false'
128-
uses: docker/build-push-action@v4
128+
uses: docker/build-push-action@v5
129129
with:
130130
context: ./api_app/
131131
file: ./api_app/Dockerfile
@@ -136,7 +136,7 @@ jobs:
136136
if: |
137137
(steps.filter.outputs.resource_processor == 'true'
138138
|| github.event_name == 'workflow_dispatch')
139-
uses: docker/build-push-action@v4
139+
uses: docker/build-push-action@v5
140140
with:
141141
context: ./resource_processor
142142
file: ./resource_processor/vmss_porter/Dockerfile
@@ -147,7 +147,7 @@ jobs:
147147
if: |
148148
(steps.filter.outputs.guacamole_server == 'true'
149149
|| github.event_name == 'workflow_dispatch')
150-
uses: docker/build-push-action@v4
150+
uses: docker/build-push-action@v5
151151
with:
152152
context: ./templates/workspace_services/guacamole/guacamole-server
153153
file: ./templates/workspace_services/guacamole/guacamole-server/docker/Dockerfile
@@ -158,7 +158,7 @@ jobs:
158158

159159
- name: "Check maven failure file existence"
160160
id: check_maven_test_result
161-
uses: andstor/file-existence-action@v2
161+
uses: andstor/file-existence-action@v3
162162
with:
163163
files: "test-results/guacamole_package_failed"
164164

@@ -167,7 +167,7 @@ jobs:
167167
(steps.filter.outputs.guacamole_server == 'true'
168168
|| github.event_name == 'workflow_dispatch')
169169
&& steps.check_maven_test_result.outputs.files_exists == 'false'
170-
uses: docker/build-push-action@v4
170+
uses: docker/build-push-action@v5
171171
with:
172172
context: ./templates/workspace_services/guacamole/guacamole-server
173173
file: ./templates/workspace_services/guacamole/guacamole-server/docker/Dockerfile
@@ -178,7 +178,7 @@ jobs:
178178
if: |
179179
(steps.filter.outputs.gitea == 'true'
180180
|| github.event_name == 'workflow_dispatch')
181-
uses: docker/build-push-action@v4
181+
uses: docker/build-push-action@v5
182182
with:
183183
context: ./templates/shared_services/gitea/docker
184184
file: ./templates/shared_services/gitea/docker/Dockerfile
@@ -195,7 +195,7 @@ jobs:
195195
if: |
196196
(steps.filter.outputs.airlock_processor == 'true'
197197
|| github.event_name == 'workflow_dispatch')
198-
uses: docker/build-push-action@v4
198+
uses: docker/build-push-action@v5
199199
with:
200200
context: ./airlock_processor/
201201
file: ./airlock_processor/Dockerfile
@@ -206,7 +206,7 @@ jobs:
206206

207207
- name: "Check pytest failure file existence"
208208
id: check_airlock_processor_test_result
209-
uses: andstor/file-existence-action@v2
209+
uses: andstor/file-existence-action@v3
210210
with:
211211
files: "test-results/pytest_airlock_processor_unit_failed"
212212

@@ -215,7 +215,7 @@ jobs:
215215
(steps.filter.outputs.airlock_processor == 'true'
216216
|| github.event_name == 'workflow_dispatch')
217217
&& steps.check_airlock_processor_test_result.outputs.files_exists == 'false'
218-
uses: docker/build-push-action@v4
218+
uses: docker/build-push-action@v5
219219
with:
220220
context: ./airlock_processor/
221221
file: ./airlock_processor/Dockerfile
@@ -224,7 +224,7 @@ jobs:
224224

225225
- name: Upload Unit Test Results
226226
if: always()
227-
uses: actions/upload-artifact@v3
227+
uses: actions/upload-artifact@v4
228228
with:
229229
name: test-results
230230
path: test-results

.github/workflows/build_docs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@ jobs:
1818
contents: write
1919
steps:
2020
- name: Checkout main
21-
uses: actions/checkout@v3
21+
uses: actions/checkout@v4
2222
with:
2323
fetch-depth: 0
2424
persist-credentials: true
25-
- uses: actions/setup-python@v4
25+
- uses: actions/setup-python@v5
2626
with:
2727
python-version: 3.x
2828
- name: Install Dependencies

.github/workflows/build_validation_develop.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,14 @@ jobs:
1919
runs-on: ubuntu-latest
2020
steps:
2121
- name: Checkout code
22-
uses: actions/checkout@v3
22+
uses: actions/checkout@v4
2323
with:
2424
# Full git history is needed to get a proper list of
2525
# changed files within `super-linter`
2626
fetch-depth: 0
2727
persist-credentials: false
2828

29-
- uses: dorny/paths-filter@v2
29+
- uses: dorny/paths-filter@v3
3030
id: filter
3131
with:
3232
filters: |

.github/workflows/clean_validation_envs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@ jobs:
1414
environment: CICD
1515
timeout-minutes: 30
1616
steps:
17-
- uses: actions/checkout@v3
17+
- uses: actions/checkout@v4
1818
with:
1919
# This is CRITICAL since we're making decisions based on branch existence
2020
fetch-depth: 0
2121
persist-credentials: false
2222

2323
- name: Azure Login
24-
uses: azure/login@v1
24+
uses: azure/login@v2
2525
with:
2626
creds: ${{ secrets.AZURE_CREDENTIALS }}
2727
environment: ${{ (secrets.AZURE_ENVIRONMENT != '' && secrets.AZURE_ENVIRONMENT) || 'AzureCloud' }}

.github/workflows/cli-package.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121

2222
steps:
2323
- name: Checkout (GitHub)
24-
uses: actions/checkout@v3
24+
uses: actions/checkout@v4
2525

2626
- name: Build and run dev container task
2727
uses: ./.github/actions/devcontainer_run_command
@@ -50,7 +50,7 @@ jobs:
5050
AZURE_ENVIRONMENT: ${{ secrets.AZURE_ENVIRONMENT }}
5151

5252
- name: Upload Wheel as artifact
53-
uses: actions/upload-artifact@v3
53+
uses: actions/upload-artifact@v4
5454
with:
5555
name: tre-cli
5656
path: dist/tre-*.whl

.github/workflows/deploy_tre_reusable.yml

Lines changed: 24 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -185,18 +185,18 @@ jobs:
185185
details_url: "https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}"
186186

187187
- name: Checkout
188-
uses: actions/checkout@v3
188+
uses: actions/checkout@v4
189189
with:
190190
persist-credentials: false
191191
# if the following values are missing (i.e. not triggered via comment workflow)
192192
# then the default checkout will apply
193193
ref: ${{ inputs.prRef }}
194194

195195
- name: Set up Docker BuildKit
196-
uses: docker/setup-buildx-action@v2
196+
uses: docker/setup-buildx-action@v3
197197

198198
- name: Azure Login
199-
uses: azure/login@v1
199+
uses: azure/login@v2
200200
with:
201201
creds: ${{ secrets.AZURE_CREDENTIALS }}
202202
environment: ${{ (vars.AZURE_ENVIRONMENT != '' && vars.AZURE_ENVIRONMENT) || 'AzureCloud' }}
@@ -274,7 +274,7 @@ jobs:
274274

275275
steps:
276276
- name: Checkout
277-
uses: actions/checkout@v3
277+
uses: actions/checkout@v4
278278
with:
279279
persist-credentials: false
280280
# if the following values are missing (i.e. not triggered via comment workflow)
@@ -298,7 +298,7 @@ jobs:
298298
environment: ${{ inputs.environmentName }}
299299
steps:
300300
- name: Checkout
301-
uses: actions/checkout@v3
301+
uses: actions/checkout@v4
302302
with:
303303
persist-credentials: false
304304
# if the following values are missing (i.e. not triggered via comment workflow)
@@ -322,7 +322,7 @@ jobs:
322322
environment: ${{ inputs.environmentName }}
323323
steps:
324324
- name: Checkout
325-
uses: actions/checkout@v3
325+
uses: actions/checkout@v4
326326
with:
327327
persist-credentials: false
328328
# if the following values are missing (i.e. not triggered via comment workflow)
@@ -408,7 +408,7 @@ jobs:
408408
environment: ${{ inputs.environmentName }}
409409
steps:
410410
- name: Checkout
411-
uses: actions/checkout@v3
411+
uses: actions/checkout@v4
412412
with:
413413
persist-credentials: false
414414
# if the following values are missing (i.e. not triggered via comment workflow)
@@ -454,7 +454,7 @@ jobs:
454454
environment: ${{ inputs.environmentName }}
455455
steps:
456456
- name: Checkout
457-
uses: actions/checkout@v3
457+
uses: actions/checkout@v4
458458
with:
459459
persist-credentials: false
460460
# if the following values are missing (i.e. not triggered via comment workflow)
@@ -500,7 +500,7 @@ jobs:
500500
environment: ${{ inputs.environmentName }}
501501
steps:
502502
- name: Checkout
503-
uses: actions/checkout@v3
503+
uses: actions/checkout@v4
504504
with:
505505
persist-credentials: false
506506
# if the following values are missing (i.e. not triggered via comment workflow)
@@ -560,7 +560,7 @@ jobs:
560560
environment: ${{ inputs.environmentName }}
561561
steps:
562562
- name: Checkout
563-
uses: actions/checkout@v3
563+
uses: actions/checkout@v4
564564
with:
565565
persist-credentials: false
566566
# if the following values are missing (i.e. not triggered via comment workflow)
@@ -609,7 +609,7 @@ jobs:
609609
environment: ${{ inputs.environmentName }}
610610
steps:
611611
- name: Checkout
612-
uses: actions/checkout@v3
612+
uses: actions/checkout@v4
613613
with:
614614
persist-credentials: false
615615
# if the following values are missing (i.e. not triggered via comment workflow)
@@ -643,7 +643,7 @@ jobs:
643643
environment: ${{ inputs.environmentName }}
644644
steps:
645645
- name: Checkout
646-
uses: actions/checkout@v3
646+
uses: actions/checkout@v4
647647
with:
648648
persist-credentials: false
649649
# if the following values are missing (i.e. not triggered via comment workflow)
@@ -692,7 +692,7 @@ jobs:
692692
environment: ${{ inputs.environmentName }}
693693
steps:
694694
- name: Checkout
695-
uses: actions/checkout@v3
695+
uses: actions/checkout@v4
696696
with:
697697
persist-credentials: false
698698
# if the following values are missing (i.e. not triggered via comment workflow)
@@ -723,7 +723,7 @@ jobs:
723723
timeout-minutes: 10
724724
steps:
725725
- name: Checkout
726-
uses: actions/checkout@v3
726+
uses: actions/checkout@v4
727727
with:
728728
persist-credentials: false
729729
# if the following values are missing (i.e. not triggered via comment workflow)
@@ -752,7 +752,7 @@ jobs:
752752

753753
- name: Upload Test Results
754754
if: always()
755-
uses: actions/upload-artifact@v3
755+
uses: actions/upload-artifact@v4
756756
with:
757757
name: E2E Test (Smoke) Results
758758
path: "./e2e_tests/pytest_e2e_smoke.xml"
@@ -766,7 +766,7 @@ jobs:
766766
timeout-minutes: 300
767767
steps:
768768
- name: Checkout
769-
uses: actions/checkout@v3
769+
uses: actions/checkout@v4
770770
with:
771771
persist-credentials: false
772772
# if the following values are missing (i.e. not triggered via comment workflow)
@@ -796,7 +796,7 @@ jobs:
796796

797797
- name: Upload Test Results
798798
if: always()
799-
uses: actions/upload-artifact@v3
799+
uses: actions/upload-artifact@v4
800800
with:
801801
name: E2E Test Results
802802
path: "./e2e_tests/pytest_e2e_custom.xml"
@@ -811,8 +811,11 @@ jobs:
811811
if: always()
812812
environment: ${{ inputs.environmentName }}
813813
steps:
814-
- uses: technote-space/workflow-conclusion-action@v3
815-
814+
# - uses: technote-space/workflow-conclusion-action@v3 (removed due to archived repo and deprecated node.js version)
815+
- uses: im-open/workflow-conclusion@v2.2.2
816+
id: conclusion
817+
with:
818+
github-token: ${{ secrets.GITHUB_TOKEN }}
816819
# For PR builds triggered from comment builds, the GITHUB_REF is set to main
817820
# so the checks aren't automatically associated with the PR
818821
# If prHeadSha is specified then explicity mark the checks for that SHA
@@ -845,12 +848,12 @@ jobs:
845848
timezone: Europe/Zurich
846849

847850
- name: Download Artifacts
848-
uses: actions/download-artifact@v3
851+
uses: actions/download-artifact@v4
849852
with:
850853
path: artifacts
851854

852855
- name: Publish E2E Test Results
853-
uses: EnricoMi/publish-unit-test-result-action@v2
856+
uses: EnricoMi/publish-unit-test-result-action@v2.16.1
854857
with:
855858
junit_files: "artifacts/**/*.xml"
856859
check_name: "E2E Test Results"

0 commit comments

Comments
 (0)