Skip to content

Commit 26f16a7

Browse files
committed
Avoid publishing artifacts with conflicting names
.. as documented in actions/upload-artifact#480.
1 parent 24758c3 commit 26f16a7

File tree

2 files changed

+12
-5
lines changed

2 files changed

+12
-5
lines changed

.github/actions/upload_coverage/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@ runs:
2424
- uses: actions/[email protected]
2525
with:
2626
path: "/tmp/codeclimate/*.json"
27-
name: codeclimate
27+
name: codeclimate-${{ inputs.flags }}

.github/workflows/build_and_test.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -303,10 +303,12 @@ jobs:
303303
check-arbitrary-configs parallel=4 CONFIGS=$TESTS
304304
- uses: "./.github/actions/save_logs_and_results"
305305
if: always()
306+
with:
307+
folder: ${{ env.PG_MAJOR }}_arbitrary_configs_${{ matrix.parallel }}
306308
- uses: "./.github/actions/upload_coverage"
307309
if: always()
308310
with:
309-
flags: ${{ env.pg_major }}_upgrade
311+
flags: ${{ env.PG_MAJOR }}_arbitrary_configs_${{ matrix.parallel }}
310312
codecov_token: ${{ secrets.CODECOV_TOKEN }}
311313
test-pg-upgrade:
312314
name: PG${{ matrix.old_pg_major }}-PG${{ matrix.new_pg_major }} - check-pg-upgrade
@@ -360,6 +362,8 @@ jobs:
360362
if: failure()
361363
- uses: "./.github/actions/save_logs_and_results"
362364
if: always()
365+
with:
366+
folder: ${{ env.old_pg_major }}_${{ env.new_pg_major }}_upgrade
363367
- uses: "./.github/actions/upload_coverage"
364368
if: always()
365369
with:
@@ -405,10 +409,12 @@ jobs:
405409
done;
406410
- uses: "./.github/actions/save_logs_and_results"
407411
if: always()
412+
with:
413+
folder: ${{ env.PG_MAJOR }}_citus_upgrade
408414
- uses: "./.github/actions/upload_coverage"
409415
if: always()
410416
with:
411-
flags: ${{ env.pg_major }}_upgrade
417+
flags: ${{ env.PG_MAJOR }}_citus_upgrade
412418
codecov_token: ${{ secrets.CODECOV_TOKEN }}
413419
upload-coverage:
414420
if: always()
@@ -426,8 +432,9 @@ jobs:
426432
steps:
427433
- uses: actions/[email protected]
428434
with:
429-
name: "codeclimate"
430-
path: "codeclimate"
435+
pattern: codeclimate*
436+
path: codeclimate
437+
merge-multiple: true
431438
- name: Upload coverage results to Code Climate
432439
run: |-
433440
cc-test-reporter sum-coverage codeclimate/*.json -o total.json

0 commit comments

Comments
 (0)