Skip to content

Commit

Permalink
Fix check-codeowners: path needs to be updated on its own step
Browse files Browse the repository at this point in the history
  • Loading branch information
pjanotti committed Dec 9, 2024
1 parent 6552f4f commit fc33dfd
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 fc33dfd

Please sign in to comment.