diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index ae5bcac79ed5..aa7b6239740c 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -230,7 +230,7 @@ jobs: make gendistributions git diff -s --exit-code || (echo 'Generated code is out of date, please run "make gendistributions" and commit the changes in this PR.' && exit 1) - name: Gen CODEOWNERS - if: (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v')) && github.repository == 'open-telemetry/opentelemetry-collector-contrib' + if: github.repository == 'open-telemetry/opentelemetry-collector-contrib' run: | GITHUB_TOKEN=${{ secrets.READ_ORG_AND_USER_TOKEN }} make gengithub git diff -s --exit-code || (echo 'Generated code is out of date, please apply this diff and commit the changes in this PR.' && git diff && exit 1)