Browse Source

Polish "Prevent execution of Antora jobs on forks"

See gh-34077
pull/34398/head
Stéphane Nicoll 1 year ago
parent
commit
cfa3463cec
  1. 8
      .github/workflows/update-antora-ui-spring.yml

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

@ -12,9 +12,9 @@ permissions: @@ -12,9 +12,9 @@ permissions:
jobs:
update-antora-ui-spring:
runs-on: ubuntu-latest
if: github.repository_owner == 'spring-projects'
name: Update on Supported Branches
if: ${{ github.repository == 'spring-projects/spring-framework' }}
runs-on: ubuntu-latest
strategy:
matrix:
branch: [ '6.1.x' ]
@ -26,9 +26,9 @@ jobs: @@ -26,9 +26,9 @@ jobs:
token: ${{ secrets.GITHUB_TOKEN }}
antora-file-path: 'framework-docs/antora-playbook.yml'
update-antora-ui-spring-docs-build:
runs-on: ubuntu-latest
if: github.repository_owner == 'spring-projects'
name: Update on docs-build
if: ${{ github.repository == 'spring-projects/spring-framework' }}
runs-on: ubuntu-latest
steps:
- uses: spring-io/spring-doc-actions/update-antora-spring-ui@5a57bcc6a0da2a1474136cf29571b277850432bc
name: Update

Loading…
Cancel
Save