Do not trigger GHA workflows on forks

GHA workflows are automatically executed on forks where they fail.
This change prevents this (only for those workflows that are
automatically triggered, e.g.: on push or schedule).
This commit is contained in:
Jonatan Ivanov
2025-05-15 14:39:37 -07:00
committed by Mark Pollack
parent 008a760fa7
commit 6df84845a2
4 changed files with 4 additions and 1 deletions

View File

@@ -9,7 +9,7 @@ permissions:
jobs:
build:
runs-on: ubuntu-latest
if: github.repository_owner == 'spring-projects'
if: ${{ github.repository_owner == 'spring-projects' }}
steps:
- name: Checkout
uses: actions/checkout@v4