Skip to content

Commit

Permalink
[chore] Fix check-codeowners: path needs to be updated on its own step (
Browse files Browse the repository at this point in the history
#36732)

Path for the tool needs to be updated on its own step, prior to using
the tool.
  • Loading branch information
pjanotti authored Dec 10, 2024
1 parent 5ab175c commit ca10fa7
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/check-codeowners.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,16 +46,18 @@ jobs:
needs: [setup-environment]
steps:
- uses: actions/checkout@v4
- name: Gen githubgen tool
if: github.repository == 'open-telemetry/opentelemetry-collector-contrib'
run: |
make githubgen-install
echo "$(go env GOPATH)/bin" >> $GITHUB_PATH
- uses: actions/checkout@v4
with:
ref: ${{github.event.pull_request.head.ref}}
repository: ${{github.event.pull_request.head.repo.full_name}}
path: pr
- name: Gen CODEOWNERS
if: github.repository == 'open-telemetry/opentelemetry-collector-contrib'
run: |
make githubgen-install
cd pr
echo "$(go env GOPATH)/bin" >> $GITHUB_PATH
GITHUB_TOKEN=${{ secrets.READ_ORG_AND_USER_TOKEN }} githubgen
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)

0 comments on commit ca10fa7

Please sign in to comment.