Skip to content

Commit

Permalink
Test, but don't publish pull requests
Browse files Browse the repository at this point in the history
  • Loading branch information
dougmassay authored Aug 13, 2024
1 parent 6dd3f26 commit 25997a6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,9 @@ env:
jobs:
# Single deploy job since we're just deploying
deploy:
# Only update pages website if test build action completess successfully
if: ${{ github.event.workflow_run.conclusion == 'success' }}
# Only update pages website if test build action completess successfully.
# And we want to be able to test pull requests without publishing them.
if: ${{ github.event.workflow_run.conclusion == 'success' && github.event_name != 'pull_request' }}
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
Expand Down

0 comments on commit 25997a6

Please sign in to comment.