Skip to content

Commit

Permalink
Use 'null' for default CODECOV_TOKEN
Browse files Browse the repository at this point in the history
The intent here is that specifying a CODECOV_TOKEN, even an empty one,
should still trigger the step.
  • Loading branch information
cottsay committed Jun 24, 2024
1 parent b807fbe commit d0680a2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/pytest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ on: # yamllint disable-line rule:truthy
secrets:
CODECOV_TOKEN:
description: 'token to use when running codecov action after testing'
default: null
required: false

jobs:
Expand Down Expand Up @@ -66,4 +67,4 @@ jobs:
- uses: codecov/codecov-action@v4
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
if: ${{ env.CODECOV_TOKEN != '' }}
if: ${{ env.CODECOV_TOKEN != null }}

0 comments on commit d0680a2

Please sign in to comment.