Skip to content

Commit

Permalink
Make it possible to skip site re-generation for maintenance commits
Browse files Browse the repository at this point in the history
  • Loading branch information
themkat committed Aug 12, 2024
1 parent 485ed13 commit 782ab8b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/jekyll.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ permissions:
jobs:
build:
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, '[SKIP]')"
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down Expand Up @@ -56,7 +57,7 @@ jobs:
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
if: "github.event_name != 'pull_request'"
if: "github.event_name != 'pull_request' && !contains(github.event.head_commit.message, '[SKIP]')"
steps:
- name: Deploy to GitHub Pages
id: deployment
Expand Down

0 comments on commit 782ab8b

Please sign in to comment.