Skip to content

Commit 2d95040

Browse files
committed
Ensure GHA work properly on fork or are disabled!
Signed-off-by: Hilmar Falkenberg <hilmar.falkenberg@sap.com>
1 parent 4e20d64 commit 2d95040

4 files changed

Lines changed: 5 additions & 1 deletion

File tree

.github/workflows/backport.yml

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

1212
jobs:
1313
backport:
14+
if: github.repository == 'open-telemetry/opentelemetry-java'
1415
permissions:
1516
contents: write # for git push to PR branch
1617
runs-on: ubuntu-latest

.github/workflows/benchmark-tags.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ permissions:
88

99
jobs:
1010
sdk-benchmark:
11+
if: github.repository == 'open-telemetry/opentelemetry-java'
1112
permissions:
1213
contents: write # for git push to benchmarks branch
1314
name: Benchmark SDK

.github/workflows/benchmark.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ permissions:
1010

1111
jobs:
1212
sdk-benchmark:
13+
if: github.repository == 'open-telemetry/opentelemetry-java'
1314
permissions:
1415
contents: write # for git push to benchmarks branch
1516
name: Benchmark SDK

.github/workflows/build-daily.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ jobs:
1414
uses: ./.github/workflows/reusable-link-check.yml
1515

1616
publish-snapshots:
17+
if: github.repository == 'open-telemetry/opentelemetry-java'
1718
runs-on: ubuntu-24.04
1819
steps:
1920
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
@@ -50,5 +51,5 @@ jobs:
5051
success: >-
5152
${{
5253
needs.link-check.result == 'success' &&
53-
needs.publish-snapshots.result == 'success'
54+
(needs.publish-snapshots.result == 'success' || needs.publish-snapshots.result == 'skipped')
5455
}}

0 commit comments

Comments
 (0)