diff --git a/.github/workflows/master.yml b/.github/workflows/master.yml index 08b5929c0..6babc53b8 100644 --- a/.github/workflows/master.yml +++ b/.github/workflows/master.yml @@ -8,3 +8,4 @@ jobs: uses: ThreeDotsLabs/watermill/.github/workflows/tests.yml@master with: stress-tests: true + codecov_token: ${{ secrets.CODECOV_TOKEN }} diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index ffc3250be..85fae72b4 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -7,6 +7,9 @@ on: required: false type: boolean default: false + codecov_token: + required: false + type: string jobs: build: runs-on: ubuntu-latest @@ -54,7 +57,8 @@ jobs: - run: make wait - run: make test_codecov - uses: codecov/codecov-action@v4 + if: ${{ inputs.codecov_token != '' }} with: fail_ci_if_error: true files: ./coverage.out - token: ${{ secrets.CODECOV_TOKEN }} + token: ${{ inputs.codecov_token }}