From 415f05129c059ed9a0156141fc5bd384c23ed0b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mi=C5=82osz=20Sm=C3=B3=C5=82ka?= Date: Fri, 18 Oct 2024 17:35:33 +0200 Subject: [PATCH] Fix CI secret passing --- .github/workflows/master.yml | 1 + .github/workflows/tests.yml | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) 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 }}