Skip to content

Commit

Permalink
[chore] Run make gengithub on PRs
Browse files Browse the repository at this point in the history
  • Loading branch information
evan-bradley committed Oct 28, 2024
1 parent 3b31e40 commit 9fad8f8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
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
Expand Down

0 comments on commit 9fad8f8

Please sign in to comment.