Skip to content

Commit

Permalink
[chore][workflow] only run for main repository (#37086)
Browse files Browse the repository at this point in the history
#### Description

Without this change, when someone makes a PR to `main` in a fork of this
repository, this [workflow
fails](https://github.com/check-spelling-sandbox/opentelemetry-collector-contrib/actions/runs/12663292988)

#### Testing


https://github.com/check-spelling-sandbox/opentelemetry-collector-contrib/actions/runs/12663466736

Signed-off-by: Josh Soref <[email protected]>
  • Loading branch information
jsoref authored Jan 8, 2025
1 parent cc1232e commit 9f3aa8a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/check-codeowners.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
setup-environment:
timeout-minutes: 30
runs-on: ubuntu-24.04
if: ${{ github.actor != 'dependabot[bot]' }}
if: ${{ github.actor != 'dependabot[bot]' && github.repository == 'open-telemetry/opentelemetry-collector-contrib' }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
Expand All @@ -47,7 +47,6 @@ jobs:
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
Expand Down

0 comments on commit 9f3aa8a

Please sign in to comment.