A platform for community discussion. Free, open, simple.
DEV: Update actions/upload-artifact to v4 (#24943)
Jarek Radosz157a2fce1bab
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.ymlindex 0375d87baaf..234986f906a 100644--- a/.github/workflows/tests.yml+++ b/.github/workflows/tests.yml@@ -239,10 +239,10 @@ jobs:run: DISCOURSE_DEV_DB=discourse_test QUNIT_PARALLEL=3 bin/rake themes:qunit_all_officialtimeout-minutes: 15- - uses: actions/upload-artifact@v3+ - uses: actions/upload-artifact@v4if: always() && matrix.build_type == 'frontend' && matrix.target == 'plugins'with:- name: ember-exam-execution-plugins-frontend+ name: ember-exam-execution-plugins-frontend-${{ hashFiles('./app/assets/javascripts/discourse/test-execution-*.json') }}path: ./app/assets/javascripts/discourse/test-execution-*.json- name: Ember Build for System Tests@@ -289,10 +289,10 @@ jobs:shell: bash- name: Upload failed system test screenshots- uses: actions/upload-artifact@v3+ uses: actions/upload-artifact@v4if: always() && steps.check-failed-system-test-screenshots.outputs.exists == 'true'with:- name: failed-system-test-screenshots+ name: failed-system-test-screenshots-${{ hashFiles('tmp/capybara/*.png') }}path: tmp/capybara/*.png- name: Check for flaky tests report@@ -318,10 +318,10 @@ jobs:run: cp tmp/turbo_rspec_flaky_tests.json tmp/turbo_rspec_flaky_tests-${{ matrix.build_type }}-${{ matrix.target }}-${{ steps.fetch-job-id.outputs.job_id }}.json- name: Upload flaky tests report- uses: actions/upload-artifact@v3+ uses: actions/upload-artifact@v4if: always() && steps.check-flaky-spec-report.outputs.exists == 'true'with:- name: flaky-test-reports+ name: flaky-test-reports-${{ hashFiles('tmp/turbo_rspec_flaky_tests-*') }}path: tmp/turbo_rspec_flaky_tests-${{ matrix.build_type }}-${{ matrix.target }}-${{ steps.fetch-job-id.outputs.job_id }}.json- name: Check Annotations@@ -404,8 +404,8 @@ jobs:run: yarn ember exam --path /tmp/emberbuild --load-balance --parallel=5 --launch "${{ env.TESTEM_BROWSER }}" --write-execution-file --randomtimeout-minutes: 15- - uses: actions/upload-artifact@v3+ - uses: actions/upload-artifact@v4if: ${{ always() }}with:- name: ember-exam-execution-${{ matrix.browser }}+ name: ember-exam-execution-${{ matrix.browser }}-${{ hashFiles('./app/assets/javascripts/discourse/test-execution-*.json') }}path: ./app/assets/javascripts/discourse/test-execution-*.json