Skip to content

Commit 88bbcce

Browse files
Prevent GH actions from running on any other branch (#21)
1 parent afb6275 commit 88bbcce

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,8 @@ jobs:
1717
# Build job
1818
build:
1919
runs-on: ubuntu-latest
20+
# Run only on push to the `main` branch
21+
if: github.ref == 'refs/heads/main'
2022
steps:
2123
- name: Checkout
2224
uses: actions/checkout@v4

0 commit comments

Comments
 (0)