Skip to content

Commit cfa3463

Browse files
committed
Polish "Prevent execution of Antora jobs on forks"
See gh-34077
1 parent d2264b2 commit cfa3463

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/update-antora-ui-spring.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ permissions:
1212

1313
jobs:
1414
update-antora-ui-spring:
15-
runs-on: ubuntu-latest
16-
if: github.repository_owner == 'spring-projects'
1715
name: Update on Supported Branches
16+
if: ${{ github.repository == 'spring-projects/spring-framework' }}
17+
runs-on: ubuntu-latest
1818
strategy:
1919
matrix:
2020
branch: [ '6.1.x' ]
@@ -26,9 +26,9 @@ jobs:
2626
token: ${{ secrets.GITHUB_TOKEN }}
2727
antora-file-path: 'framework-docs/antora-playbook.yml'
2828
update-antora-ui-spring-docs-build:
29-
runs-on: ubuntu-latest
30-
if: github.repository_owner == 'spring-projects'
3129
name: Update on docs-build
30+
if: ${{ github.repository == 'spring-projects/spring-framework' }}
31+
runs-on: ubuntu-latest
3232
steps:
3333
- uses: spring-io/spring-doc-actions/update-antora-spring-ui@5a57bcc6a0da2a1474136cf29571b277850432bc
3434
name: Update

0 commit comments

Comments
 (0)