From b4236b65475a68a7db77be9b63788d99b208a9fc Mon Sep 17 00:00:00 2001 From: Roman Gilg Date: Sun, 3 Mar 2024 16:14:19 +0100 Subject: [PATCH] ci: pass Codecov token as environment variable Passing it as an input does not seem to work in workflow_calls for unknown reasons. [1] Instead we try to pass it as an environment variable what is also possible according to the action documentation. [2] [1] https://github.com/codecov/codecov-action/issues/1292#issuecomment-1942100350 [2] https://github.com/codecov/codecov-action/blob/54bcd87/README.md#usage --- .github/workflows/test.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 7dad53a25..e7d0e39b6 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -60,7 +60,8 @@ jobs: uses: codecov/codecov-action@v4 if: github.repository == 'winft/como' || github.event_name == 'pull_request' with: - token: ${{ secrets.CODECOV_TOKEN }} file: coverage.xml fail_ci_if_error: true verbose: true + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}