Skip to content

Commit c27d608

Browse files
committed
Prevent execution of Antora jobs on forks
Signed-off-by: Stefano Cordio <[email protected]>
1 parent 6d6552a commit c27d608

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ permissions:
1212

1313
jobs:
1414
update-antora-ui-spring:
15+
if: ${{ github.repository == 'spring-projects/spring-security' }}
1516
runs-on: ubuntu-latest
1617
name: Update on Supported Branches
1718
strategy:
@@ -25,6 +26,7 @@ jobs:
2526
token: ${{ secrets.GITHUB_TOKEN }}
2627
antora-file-path: 'docs/antora-playbook.yml'
2728
update-antora-ui-spring-docs-build:
29+
if: ${{ github.repository == 'spring-projects/spring-security' }}
2830
runs-on: ubuntu-latest
2931
name: Update on docs-build
3032
steps:

0 commit comments

Comments
 (0)