Skip to content

Commit

Permalink
Add conditions to avoid "Run failed" mails
Browse files Browse the repository at this point in the history
  • Loading branch information
its-miroma committed Jan 22, 2025
1 parent d4f7b9e commit 4effe9c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
name: Build

on:
push:
branches: ["main"]
Expand All @@ -10,6 +11,7 @@ concurrency:

jobs:
docs:
if: github.event_name == "pull_request" || github.repository == "FabricMC/fabric-docs"
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
Expand All @@ -20,6 +22,7 @@ jobs:
- run: npm run build

mod:
if: github.event_name == "pull_request" || github.repository == "FabricMC/fabric-docs"
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ permissions:

jobs:
build:
if: github.repository == "FabricMC/fabric-docs"
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
Expand All @@ -32,6 +33,7 @@ jobs:
path: "./.vitepress/dist"

deploy:
if: github.repository == "FabricMC/fabric-docs"
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
Expand Down

0 comments on commit 4effe9c

Please sign in to comment.