diff --git a/.github/workflows/reusable-unit-split.yml b/.github/workflows/reusable-unit-split.yml index f8088f4a804..3b9eb489590 100644 --- a/.github/workflows/reusable-unit-split.yml +++ b/.github/workflows/reusable-unit-split.yml @@ -157,6 +157,8 @@ jobs: chmod +x /usr/local/bin/datadog-ci - name: upload coverage + # do not run on forks + if: ${{ env.DATADOG_API_KEY}} env: DD_ENV: ci run: datadog-ci junit upload --service "$GITHUB_REPOSITORY" ${{env.TEST_RESULTS}}/gotestsum-report.xml diff --git a/.github/workflows/reusable-unit.yml b/.github/workflows/reusable-unit.yml index 5fd47339e12..e7caaae8d6a 100644 --- a/.github/workflows/reusable-unit.yml +++ b/.github/workflows/reusable-unit.yml @@ -125,6 +125,8 @@ jobs: chmod +x /usr/local/bin/datadog-ci - name: upload coverage + # do not run on forks + if: ${{ env.DATADOG_API_KEY}} env: DD_ENV: ci run: datadog-ci junit upload --service "$GITHUB_REPOSITORY" ${{env.TEST_RESULTS}}/gotestsum-report.xml diff --git a/.github/workflows/test-integrations.yml b/.github/workflows/test-integrations.yml index 555d534f1a0..d98faa44741 100644 --- a/.github/workflows/test-integrations.yml +++ b/.github/workflows/test-integrations.yml @@ -121,6 +121,8 @@ jobs: chmod +x /usr/local/bin/datadog-ci - name: upload coverage + # do not run on forks + if: github.event.pull_request.head.repo.full_name == github.repository env: DATADOG_API_KEY: "${{ endsWith(github.repository, '-enterprise') && env.DATADOG_API_KEY || secrets.DATADOG_API_KEY }}" DD_ENV: ci @@ -200,18 +202,23 @@ jobs: chmod +x /usr/local/bin/datadog-ci - name: upload coverage + # do not run on forks + if: github.event.pull_request.head.repo.full_name == github.repository env: DATADOG_API_KEY: "${{ endsWith(github.repository, '-enterprise') && env.DATADOG_API_KEY || secrets.DATADOG_API_KEY }}" DD_ENV: ci run: datadog-ci junit upload --service "$GITHUB_REPOSITORY" "${{ env.TEST_RESULTS_DIR }}/gotestsum-report.xml" - name: upload leader coverage + # do not run on forks + if: github.event.pull_request.head.repo.full_name == github.repository env: DATADOG_API_KEY: "${{ endsWith(github.repository, '-enterprise') && env.DATADOG_API_KEY || secrets.DATADOG_API_KEY }}" DD_ENV: ci run: datadog-ci junit upload --service "$GITHUB_REPOSITORY" "${{ env.TEST_RESULTS_DIR }}/gotestsum-report-leader.xml" - name: upload agent coverage + if: github.event.pull_request.head.repo.full_name == github.repository env: DATADOG_API_KEY: "${{ endsWith(github.repository, '-enterprise') && env.DATADOG_API_KEY || secrets.DATADOG_API_KEY }}" DD_ENV: ci @@ -338,6 +345,8 @@ jobs: chmod +x /usr/local/bin/datadog-ci - name: upload coverage + # do not run on forks + if: github.event.pull_request.head.repo.full_name == github.repository env: DATADOG_API_KEY: "${{ endsWith(github.repository, '-enterprise') && env.DATADOG_API_KEY || secrets.DATADOG_API_KEY }}" DD_ENV: ci @@ -442,6 +451,8 @@ jobs: chmod +x /usr/local/bin/datadog-ci - name: upload coverage + # do not run on forks + if: github.event.pull_request.head.repo.full_name == github.repository env: DATADOG_API_KEY: "${{ endsWith(github.repository, '-enterprise') && env.DATADOG_API_KEY || secrets.DATADOG_API_KEY }}" DD_ENV: ci diff --git a/README.md b/README.md index 6874819733b..12318ee695f 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,8 @@ Consul +Added comments! + [![Docker Pulls](https://img.shields.io/docker/pulls/_/consul.svg)](https://hub.docker.com/_/consul) [![Go Report Card](https://goreportcard.com/badge/github.com/hashicorp/consul)](https://goreportcard.com/report/github.com/hashicorp/consul)