From a00860b70d2072116aee2d0952372c6825b732a9 Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Fri, 19 Jan 2024 10:41:58 +0100 Subject: [PATCH 1/2] Update GitHub artifact actions --- .github/workflows/builder.yml | 2 +- .github/workflows/ci.yaml | 24 ++++++++++++------------ .github/workflows/wheels.yml | 12 ++++++------ 3 files changed, 19 insertions(+), 19 deletions(-) diff --git a/.github/workflows/builder.yml b/.github/workflows/builder.yml index 16a48d3cb48..c1a341d37cc 100644 --- a/.github/workflows/builder.yml +++ b/.github/workflows/builder.yml @@ -221,7 +221,7 @@ jobs: run: find ./homeassistant/components/*/translations -name "*.json" | tar zcvf translations.tar.gz -T - - name: Upload translations - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4.2.0 with: name: translations path: translations.tar.gz diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 45a100092d3..781b9f90871 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -797,16 +797,16 @@ jobs: 2>&1 | tee pytest-${{ matrix.python-version }}-${{ matrix.group }}.txt - name: Upload pytest output if: success() || failure() && (steps.pytest-full.conclusion == 'failure' || steps.pytest-partial.conclusion == 'failure') - uses: actions/upload-artifact@v3.1.2 + uses: actions/upload-artifact@v4.2.0 with: name: pytest-${{ github.run_number }} path: pytest-*.txt - name: Upload coverage artifact if: needs.info.outputs.skip_coverage != 'true' - uses: actions/upload-artifact@v3.1.2 + uses: actions/upload-artifact@v4.2.0 with: name: coverage-${{ matrix.python-version }}-${{ matrix.group }} - path: coverage.xml + path: coverage-${{ matrix.python-version }}-${{ matrix.group }}.xml - name: Check dirty run: | ./script/check_dirty @@ -921,16 +921,16 @@ jobs: 2>&1 | tee pytest-${{ matrix.python-version }}-${mariadb}.txt - name: Upload pytest output if: success() || failure() && steps.pytest-partial.conclusion == 'failure' - uses: actions/upload-artifact@v3.1.2 + uses: actions/upload-artifact@v4.2.0 with: name: pytest-${{ github.run_number }} - path: pytest-*.txt + path: pytest-${{ github.run_number }}.txt - name: Upload coverage artifact if: needs.info.outputs.skip_coverage != 'true' - uses: actions/upload-artifact@v3.1.2 + uses: actions/upload-artifact@v4.2.0 with: name: coverage-${{ matrix.python-version }}-mariadb - path: coverage.xml + path: coverage-${{ matrix.python-version }}-mariadb.xml - name: Check dirty run: | ./script/check_dirty @@ -1046,16 +1046,16 @@ jobs: 2>&1 | tee pytest-${{ matrix.python-version }}-${postgresql}.txt - name: Upload pytest output if: success() || failure() && steps.pytest-partial.conclusion == 'failure' - uses: actions/upload-artifact@v3.1.2 + uses: actions/upload-artifact@v4.2.0 with: name: pytest-${{ github.run_number }} - path: pytest-*.txt + path: pytest-${{ github.run_number }}.txt - name: Upload coverage artifact if: needs.info.outputs.skip_coverage != 'true' - uses: actions/upload-artifact@v3.1.0 + uses: actions/upload-artifact@v4.2.0 with: name: coverage-${{ matrix.python-version }}-postgresql - path: coverage.xml + path: coverage-${{ matrix.python-version }}-postgresql.xml - name: Check dirty run: | ./script/check_dirty @@ -1072,7 +1072,7 @@ jobs: - name: Check out code from GitHub uses: actions/checkout@v4.1.1 - name: Download all coverage artifacts - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4.1.1 - name: Upload coverage to Codecov (full coverage) if: needs.info.outputs.test_full_suite == 'true' uses: Wandalen/wretry.action@v1.3.0 diff --git a/.github/workflows/wheels.yml b/.github/workflows/wheels.yml index c9b1a76cc37..b825229ac3b 100644 --- a/.github/workflows/wheels.yml +++ b/.github/workflows/wheels.yml @@ -63,13 +63,13 @@ jobs: ) > .env_file - name: Upload env_file - uses: actions/upload-artifact@v3.1.2 + uses: actions/upload-artifact@v4.2.0 with: name: env_file path: ./.env_file - name: Upload requirements_diff - uses: actions/upload-artifact@v3.1.2 + uses: actions/upload-artifact@v4.2.0 with: name: requirements_diff path: ./requirements_diff.txt @@ -89,12 +89,12 @@ jobs: uses: actions/checkout@v4.1.1 - name: Download env_file - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4.1.1 with: name: env_file - name: Download requirements_diff - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4.1.1 with: name: requirements_diff @@ -127,12 +127,12 @@ jobs: uses: actions/checkout@v4.1.1 - name: Download env_file - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4.1.1 with: name: env_file - name: Download requirements_diff - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4.1.1 with: name: requirements_diff From 6596e698c083b845708e0ea184e37ffbdf6db2fb Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Fri, 19 Jan 2024 11:46:04 +0100 Subject: [PATCH 2/2] Another fix --- .github/workflows/ci.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 781b9f90871..533ad0859c6 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -800,7 +800,7 @@ jobs: uses: actions/upload-artifact@v4.2.0 with: name: pytest-${{ github.run_number }} - path: pytest-*.txt + path: pytest-${{ github.run_number }}.txt - name: Upload coverage artifact if: needs.info.outputs.skip_coverage != 'true' uses: actions/upload-artifact@v4.2.0