Skip to content

Commit 9f3aa8a

Browse files
authored
[chore][workflow] only run for main repository (#37086)
#### 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]>
1 parent cc1232e commit 9f3aa8a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

.github/workflows/check-codeowners.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
setup-environment:
2525
timeout-minutes: 30
2626
runs-on: ubuntu-24.04
27-
if: ${{ github.actor != 'dependabot[bot]' }}
27+
if: ${{ github.actor != 'dependabot[bot]' && github.repository == 'open-telemetry/opentelemetry-collector-contrib' }}
2828
steps:
2929
- uses: actions/checkout@v4
3030
- uses: actions/setup-go@v5
@@ -47,7 +47,6 @@ jobs:
4747
steps:
4848
- uses: actions/checkout@v4
4949
- name: Gen githubgen tool
50-
if: github.repository == 'open-telemetry/opentelemetry-collector-contrib'
5150
run: |
5251
make githubgen-install
5352
echo "$(go env GOPATH)/bin" >> $GITHUB_PATH

0 commit comments

Comments
 (0)