From a50475bdcb41dbf93c52b89b99c9f6380a767dd4 Mon Sep 17 00:00:00 2001 From: Evan Bradley <11745660+evan-bradley@users.noreply.github.com> Date: Mon, 28 Oct 2024 09:12:02 -0400 Subject: [PATCH] [chore] Run make gengithub on PRs --- .github/workflows/build-and-test.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index ae5bcac79ed5..ec1fb4c9be2c 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -230,10 +230,12 @@ 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) + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: CodeGen run: | make -j2 generate