Skip to content

Commit

Permalink
Fix CI conditions (#63)
Browse files Browse the repository at this point in the history
  • Loading branch information
WarningImHack3r authored Aug 1, 2023
1 parent 3691b43 commit 70f1f34
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/pages-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
name: Pre-checks
runs-on: ubuntu-latest
needs: permissions-check
if: always() && !cancelled() && github.event_name == 'pull_request'
if: github.event_name == 'pull_request' && (success() || failure())
permissions:
contents: write

Expand Down Expand Up @@ -111,7 +111,7 @@ jobs:
name: Build website
runs-on: ubuntu-latest
needs: prechecks
if: always() && !cancelled() && (needs.prechecks.result == 'success' || needs.prechecks.result == 'skipped')
if: success() || github.event_name == 'push'

steps:
- name: 📂 Checkout
Expand Down Expand Up @@ -154,7 +154,7 @@ jobs:
name: Deploy website to GitHub Pages
runs-on: ubuntu-latest
needs: build
if: github.event_name != 'pull_request'
if: github.event_name == 'push'
concurrency:
group: pages
cancel-in-progress: true
Expand Down

0 comments on commit 70f1f34

Please sign in to comment.