From b7ecc3d39dd307ac9fd6b4fb589451ee261272ff Mon Sep 17 00:00:00 2001 From: kannkyo <15080890+kannkyo@users.noreply.github.com> Date: Sat, 25 Jan 2025 19:49:17 +0900 Subject: [PATCH] update github.yml --- .github/workflows/python-ci.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/python-ci.yml b/.github/workflows/python-ci.yml index 3838690..dd8f96e 100644 --- a/.github/workflows/python-ci.yml +++ b/.github/workflows/python-ci.yml @@ -63,7 +63,7 @@ jobs: junit_files: report.xml - name: Upload test results to codecov - if: ${{ !cancelled() }} + if: ${{ github.ref_name == 'main' && !cancelled() }} uses: codecov/test-results-action@4e79e65778be1cecd5df25e14af1eafb6df80ea9 with: token: ${{ secrets.CODECOV_TOKEN }} @@ -82,6 +82,7 @@ jobs: path: htmlcov/ - name: Upload coverage to codecov + if: ${{ github.ref_name == 'main' && !cancelled() }} uses: codecov/codecov-action@13ce06bfc6bbe3ecf90edbbf1bc32fe5978ca1d3 with: token: ${{ secrets.CODECOV_TOKEN }}