Skip to content

Commit

Permalink
ci: pass Codecov token as environment variable
Browse files Browse the repository at this point in the history
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] codecov/codecov-action#1292 (comment)
[2] https://github.com/codecov/codecov-action/blob/54bcd87/README.md#usage
  • Loading branch information
romangg committed Mar 3, 2024
1 parent da56878 commit b4236b6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/test.yml
Expand Up @@ -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 }}

0 comments on commit b4236b6

Please sign in to comment.