Skip to content

Commit d5a8707

Browse files
authored
[chore] do not run cron jobs on forks, they create noise (#41741)
A small annoyance that on forks, these jobs fail. See https://github.com/atoulme/opentelemetry-collector-contrib/actions/runs/16700654026 and https://github.com/atoulme/opentelemetry-collector-contrib/actions/runs/16700645277 for example.
1 parent ea9ea38 commit d5a8707

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

.github/workflows/auto-update-jmx-component.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ permissions:
1111

1212
jobs:
1313
check-jmx-metrics-version:
14+
if: github.repository == 'open-telemetry/opentelemetry-collector-contrib'
1415
runs-on: ubuntu-24.04
1516
outputs:
1617
latest-version: ${{ steps.check-jmx-metrics-version.outputs.latest-version }}
@@ -55,6 +56,7 @@ jobs:
5556
contents: write # required for pushing changes
5657
runs-on: ubuntu-24.04
5758
if: |
59+
github.repository == 'open-telemetry/opentelemetry-collector-contrib' &&
5860
needs.check-jmx-metrics-version.outputs.already-added != 'true' &&
5961
needs.check-jmx-metrics-version.outputs.already-opened != 'true'
6062
needs:
@@ -128,6 +130,7 @@ jobs:
128130
129131
check-jmx-scraper-version:
130132
runs-on: ubuntu-24.04
133+
if: github.repository == 'open-telemetry/opentelemetry-collector-contrib'
131134
outputs:
132135
latest-version: ${{ steps.check-jmx-scraper-version.outputs.latest-version }}
133136
already-added: ${{ steps.check-jmx-scraper-version.outputs.already-added }}
@@ -171,6 +174,7 @@ jobs:
171174
contents: write # required for pushing changes
172175
runs-on: ubuntu-24.04
173176
if: |
177+
github.repository == 'open-telemetry/opentelemetry-collector-contrib' &&
174178
needs.check-jmx-scraper-version.outputs.already-added != 'true' &&
175179
needs.check-jmx-scraper-version.outputs.already-opened != 'true'
176180
needs:

.github/workflows/fossa.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ permissions:
1111
jobs:
1212
fossa:
1313
runs-on: ubuntu-latest
14+
if: github.repository == 'open-telemetry/opentelemetry-collector-contrib'
1415
steps:
1516
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1617

0 commit comments

Comments
 (0)