Skip to content

Commit 0390c17

Browse files
ydahhsbt
authored andcommitted
Add conditional checks for repository owner in Jekyll workflow
This prevents remote changes from being executed when they are brought into fork.
1 parent 4eeb219 commit 0390c17

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/jekyll.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ concurrency:
1717

1818
jobs:
1919
build:
20+
if: github.repository_owner == 'ruby'
2021
runs-on: ubuntu-latest
2122
steps:
2223
- name: Checkout
@@ -37,6 +38,7 @@ jobs:
3738
uses: actions/upload-pages-artifact@56afc609e74202658d3ffba0e8f6dda462b719fa # v3.0.1
3839

3940
deploy:
41+
if: github.repository_owner == 'ruby'
4042
environment:
4143
name: github-pages
4244
url: ${{ steps.deployment.outputs.page_url }}

0 commit comments

Comments
 (0)