Skip workflows if it is fork (#2092)

Signed-off-by: Denis Papec <denis.papec@gmail.com>
This commit is contained in:
Denis Papec 2023-09-30 17:59:41 +01:00 committed by GitHub
parent 0c2671ea00
commit 67ebe29db7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View file

@ -24,7 +24,7 @@ env:
jobs: jobs:
build: build:
if: github.repository == 'benphelps/homepage'
runs-on: self-hosted runs-on: self-hosted
permissions: permissions:
contents: read contents: read

View file

@ -11,6 +11,7 @@ permissions:
jobs: jobs:
deploy: deploy:
if: github.repository == 'benphelps/homepage'
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4