Skip to content

Commit

Permalink
remove preview when pr not merged + don't force push
Browse files Browse the repository at this point in the history
  • Loading branch information
brauliorivas authored and tmadlener committed May 15, 2024
1 parent 79fdcdf commit 52d0d99
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,16 @@ jobs:
steps:
- uses: actions/checkout@v3
- uses: rossjrw/pr-preview-action@v1
if: contains(['opened', 'reopened', 'synchronize'], ${{ github.event.action }})
with:
source-dir: .
preview-branch: gh-pages
umbrella-dir: pr-preview
action: auto
- uses: rossjrw/pr-preview-action@v1
if: github.event.action == 'closed' && !github.event.pull_request.merged
with:
source-dir: .
preview-branch: gh-pages
umbrella-dir: pr-preview
action: remove
1 change: 1 addition & 0 deletions .github/workflows/static.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,4 @@ jobs:
pr-preview/
beta/
target-folder: main/
force: false

0 comments on commit 52d0d99

Please sign in to comment.