Skip to content

Commit

Permalink
ci: increase fetch-depth to 2
Browse files Browse the repository at this point in the history
Codecov apparently has trouble detecting the git commit if the
fetch depth is only 1 (the default). Therefore increase it.
See codecov/codecov-action#190 for
more details.
  • Loading branch information
gicmo committed Mar 11, 2021
1 parent 775dcea commit c6b0b91
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ jobs:
steps:
- name: "Clone Repository"
uses: actions/checkout@v2
with:
fetch-depth: 2 # codecov requires this (https://github.com/codecov/codecov-action/issues/190)
- name: "Run Tests"
uses: osbuild/containers/src/actions/privdocker@e4de123f43b95e99dfe8eed0bd5a1cd58db50715
with:
Expand Down

0 comments on commit c6b0b91

Please sign in to comment.