mirror of https://github.com/citusdata/citus.git
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
parent
55a0d1f730
commit
5e95567262
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue