add condition to filter out coverage upload action from PRs from forks as the necessaty secret is not available them and fails the whole pipeline

ihalatci-upload-cov-fix
Ibrahim Halatci 2025-06-24 09:23:46 +00:00
parent 55a0d1f730
commit 5e95567262
1 changed files with 2 additions and 1 deletions

View File

@ -396,7 +396,8 @@ jobs:
flags: ${{ env.PG_MAJOR }}_citus_upgrade
codecov_token: ${{ secrets.CODECOV_TOKEN }}
upload-coverage:
if: always()
# secret below is not available for forks so disabling upload action for them
if: ${{ github.event.pull_request.head.repo.full_name == github.repository || github.event_name != 'pull_request' }}
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
runs-on: ubuntu-latest