From 93e00db75441e18eb52849c5d33e176d6e877a74 Mon Sep 17 00:00:00 2001 From: aureliony <39163684+aureliony@users.noreply.github.com> Date: Sun, 28 Jul 2024 00:06:19 +0800 Subject: [PATCH] Update Codecov Action to v4 The current version (v3) of the codecov action had previously stopped working (https://github.com/nus-cs2103-AY2324S2/forum/issues/729), and may stop working again in the future. Let's update the codecov action to the latest version (v4) to minimize the chance of it breaking, and use the format as recommended in https://github.com/codecov/codecov-action/blob/main/README.md. --- .github/workflows/gradle.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index 5d366229..3f454a0b 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -41,6 +41,6 @@ jobs: - name: Upload coverage reports to Codecov if: runner.os == 'Linux' - uses: codecov/codecov-action@v3 - env: - CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} + uses: codecov/codecov-action@v4 + with: + token: ${{ secrets.CODECOV_TOKEN }}