File tree Expand file tree Collapse file tree 4 files changed +42
-8
lines changed Expand file tree Collapse file tree 4 files changed +42
-8
lines changed Original file line number Diff line number Diff line change @@ -306,8 +306,6 @@ jobs:
306
306
if [[ -d "artifacts-to-be-uploaded" ]]; then
307
307
mv -v artifacts-to-be-uploaded/* "${RUNNER_ARTIFACT_DIR}/"
308
308
fi
309
- # Set to fail upload step if there are no files for upload and expected files for upload
310
- echo 'if-no-files-found=error' >> "${GITHUB_OUTPUT}"
311
309
fi
312
310
313
311
upload_docs=0
@@ -328,7 +326,6 @@ jobs:
328
326
with :
329
327
name : ${{ inputs.upload-artifact }}
330
328
path : ${{ runner.temp }}/artifacts/
331
- if-no-files-found : ${{ steps.check-artifacts.outputs.if-no-files-found }}
332
329
333
330
# NB: This only works with our AWS runners
334
331
- name : Upload artifacts to S3 (if any)
@@ -339,7 +336,6 @@ jobs:
339
336
s3-bucket : gha-artifacts
340
337
s3-prefix : |
341
338
${{ env.REPOSITORY }}/${{ github.run_id }}/artifacts
342
- if-no-files-found : ${{ steps.check-artifacts.outputs.if-no-files-found }}
343
339
path : ${{ runner.temp }}/artifacts/
344
340
345
341
- name : Upload documentation to S3 (if any)
Original file line number Diff line number Diff line change @@ -306,8 +306,6 @@ jobs:
306
306
if [[ -d "artifacts-to-be-uploaded" ]]; then
307
307
mv -v artifacts-to-be-uploaded/* "${RUNNER_ARTIFACT_DIR}/"
308
308
fi
309
- # Set to fail upload step if there are no files for upload and expected files for upload
310
- echo 'if-no-files-found=error' >> "${GITHUB_OUTPUT}"
311
309
fi
312
310
313
311
upload_docs=0
@@ -328,7 +326,6 @@ jobs:
328
326
with :
329
327
name : ${{ inputs.upload-artifact }}
330
328
path : ${{ runner.temp }}/artifacts/
331
- if-no-files-found : ${{ steps.check-artifacts.outputs.if-no-files-found }}
332
329
333
330
# NB: This only works with our AWS runners
334
331
- name : Upload artifacts to S3 (if any)
@@ -339,7 +336,6 @@ jobs:
339
336
s3-bucket : gha-artifacts
340
337
s3-prefix : |
341
338
${{ env.REPOSITORY }}/${{ github.run_id }}/artifacts
342
- if-no-files-found : ${{ steps.check-artifacts.outputs.if-no-files-found }}
343
339
path : ${{ runner.temp }}/artifacts/
344
340
345
341
- name : Upload documentation to S3 (if any)
Original file line number Diff line number Diff line change @@ -117,6 +117,15 @@ jobs:
117
117
upload-artifact : my-cool-artifact
118
118
script : |
119
119
echo "hello" > "${RUNNER_ARTIFACT_DIR}/cool_beans"
120
+ test-upload-artifact-no-artifact :
121
+ uses : ./.github/workflows/linux_job.yml
122
+ with :
123
+ runner : linux.2xlarge
124
+ test-infra-repository : ${{ github.repository }}
125
+ test-infra-ref : ${{ github.ref }}
126
+ upload-artifact : my-cool-artifact
127
+ script : |
128
+ echo "hello"
120
129
test-upload-artifact-s3 :
121
130
uses : ./.github/workflows/linux_job.yml
122
131
with :
@@ -127,6 +136,16 @@ jobs:
127
136
upload-artifact-to-s3 : true
128
137
script : |
129
138
echo "hello" > "${RUNNER_ARTIFACT_DIR}/cool_beans"
139
+ test-upload-artifact-s3-no-artifact :
140
+ uses : ./.github/workflows/linux_job.yml
141
+ with :
142
+ runner : linux.2xlarge
143
+ test-infra-repository : ${{ github.repository }}
144
+ test-infra-ref : ${{ github.ref }}
145
+ upload-artifact : my-cool-artifact
146
+ upload-artifact-to-s3 : true
147
+ script : |
148
+ echo "hello"
130
149
test-download-artifact :
131
150
needs : test-upload-artifact
132
151
uses : ./.github/workflows/linux_job.yml
Original file line number Diff line number Diff line change @@ -102,6 +102,17 @@ jobs:
102
102
upload-artifact : my-cool-artifact
103
103
script : |
104
104
echo "hello" > "${RUNNER_ARTIFACT_DIR}/cool_beans"
105
+ test-upload-artifact-no-artifact :
106
+ uses : ./.github/workflows/linux_job_v2.yml
107
+ permissions :
108
+ id-token : write
109
+ with :
110
+ runner : linux.2xlarge
111
+ test-infra-repository : ${{ github.repository }}
112
+ test-infra-ref : ${{ github.ref }}
113
+ upload-artifact : my-cool-artifact
114
+ script : |
115
+ echo "hello"
105
116
test-upload-artifact-s3 :
106
117
uses : ./.github/workflows/linux_job_v2.yml
107
118
permissions :
@@ -114,6 +125,18 @@ jobs:
114
125
upload-artifact-to-s3 : true
115
126
script : |
116
127
echo "hello" > "${RUNNER_ARTIFACT_DIR}/cool_beans"
128
+ test-upload-artifact-s3-no-artifact :
129
+ uses : ./.github/workflows/linux_job_v2.yml
130
+ permissions :
131
+ id-token : write
132
+ with :
133
+ runner : linux.2xlarge
134
+ test-infra-repository : ${{ github.repository }}
135
+ test-infra-ref : ${{ github.ref }}
136
+ upload-artifact : my-cool-artifact
137
+ upload-artifact-to-s3 : true
138
+ script : |
139
+ echo "hello"
117
140
test-download-artifact :
118
141
needs : test-upload-artifact
119
142
uses : ./.github/workflows/linux_job_v2.yml
You can’t perform that action at this time.
0 commit comments