From 6625b1305da3089b9085c415ee48b6b34ea6135a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Cibrahim0814=E2=80=9D?= Date: Wed, 7 Aug 2019 18:30:01 -0700 Subject: [PATCH] add name documentation info --- README.md | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index f902e9d..d7508e1 100644 --- a/README.md +++ b/README.md @@ -10,11 +10,12 @@ Inside your `.github/workflows/workflow.yml` file: ```yaml steps: - uses: actions/checkout@master -- uses: actions/codecov-action@v0.4 +- uses: actions/codecov-action@v1 with: token: ${{secrets.CODECOV_TOKEN}} #for private repos file: ./coverage.xml #optional flags: unittests #optional + name: codecov-1 #optional ``` >**Note**: This assumes that you've set your Codecov token inside settings > secrets as `CODECOV_TOKEN`. If not, you can get an upload token for your specific repo on codecov.io. A token is *not* required for public repositories. @@ -41,11 +42,12 @@ jobs: pytest --cov=./ --cov-report=xml - name: Upload coverage to Codecov - uses: codecov/codecov-action@v0.4 + uses: codecov/codecov-action@v1 with: token: ${{secrets.CODECOV_TOKEN}} file: ./coverage.xml flags: unittests + name: codecov-1 ``` ## Arguments @@ -54,7 +56,8 @@ jobs: | :---: | :---: | | `token` | Used to authorize coverage report uploads | | `file` | Location of the coverage report | -| `flags` | Flag upload to group coverage metrics | +| `flags` | Flag upload under a certain group name | +| `name` | Custom defined name for the upload | ## License