Skip to content

Commit

Permalink
only notify about build status if not on fork
Browse files Browse the repository at this point in the history
  • Loading branch information
drmowinckels committed Dec 6, 2024
1 parent 3c94769 commit 324294a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build-preview.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ jobs:
- uses: actions/github-script@v7
name: "Notify about build failure"
if: ${{ failure() }}
if: ${{ failure() && env.on_fork != 'true' }}
with:
github-token: ${{ env.token }}
script: |
Expand All @@ -165,6 +165,7 @@ jobs:
- uses: actions/github-script@v7
name: "Notify about build preview"
if: ${{ env.on_fork != 'true' }}
with:
github-token: ${{ env.token }}
script: |
Expand All @@ -174,7 +175,6 @@ jobs:
repo: '${{ env.repo_name }}',
body: ':tada: The preview is built! [Check it out :eyes:](https://${{ env.netalias }}--rladies-dev.netlify.app)'
})

0 comments on commit 324294a

Please sign in to comment.