Skip to content

Commit

Permalink
Merge pull request #67 from darkrockmountain/feature/workflow-update
Browse files Browse the repository at this point in the history
fix(ci): prevent errors when vars.CODECOV_BRANCHES is undefined (espe…
  • Loading branch information
DarkRockMountain-admin authored Jul 18, 2024
2 parents b2c3e94 + c494486 commit 252a782
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
## is set as an array of branches to upload to Codecov.
## Example --var CODECOV_BRANCHES='["main", "feature-1"]'
- name: Upload coverage to Codecov
if: ${{ contains(fromJson(vars.CODECOV_BRANCHES), github.ref_name) }}
if: ${{ vars.CODECOV_BRANCHES && contains(fromJson(vars.CODECOV_BRANCHES), github.ref_name) }}
uses: codecov/codecov-action@e28ff129e5465c2c0dcc6f003fc735cb6ae0c673 # v4.5.0
with:
token: ${{ secrets.CODECOV_TOKEN }}
Expand Down

0 comments on commit 252a782

Please sign in to comment.