Skip to content

Commit d332e84

Browse files
authored
Changed workflow to only build GitHub pages on prometheus/client_java (#1392)
Changed workflow to only build GitHub pages on prometheus/client_java. This prevents the GitHub workflow from running on forks, which fails. Signed-off-by: dhoard <[email protected]>
1 parent 63023d7 commit d332e84

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/github-pages.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ defaults:
2929
jobs:
3030
# Build job
3131
build:
32+
if: github.repository == 'prometheus/client_java'
3233
runs-on: ubuntu-24.04
3334
steps:
3435
- uses: actions/checkout@v4
@@ -56,6 +57,7 @@ jobs:
5657

5758
# Deployment job
5859
deploy:
60+
if: github.repository == 'prometheus/client_java'
5961
permissions:
6062
contents: read
6163
pages: write

0 commit comments

Comments
 (0)