Skip to content

Commit

Permalink
ci: prevent deploy-preview from being triggered by release-please bra…
Browse files Browse the repository at this point in the history
…nch (#111)
  • Loading branch information
voice0726 authored Feb 21, 2025
1 parent 6384e9a commit 9a1f733
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ env:

jobs:
deploy:
if: ${{ github.ref_name != 'main' }}
if: ${{ github.ref_name != 'main' && !startsWith(github.ref_name, 'release-please' ) }}
runs-on: ubuntu-latest
environment:
name: preview
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/deploy-staging.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Deploy preview
name: Deploy staging

on:
push:
Expand Down

0 comments on commit 9a1f733

Please # to comment.