Skip to content

Commit

Permalink
fix ci conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
ciiqr committed May 2, 2024
1 parent 3165614 commit 6d82b3d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,9 @@ jobs:
name: Production
url: https://ptat.example.com
# TODO: remove github.repository check, you don't need it (it's just here to prevent the template repo itself trying to deploy)
if: |
${{
github.repository != 'pentible/typescript-app-template' &&
github.event.pull_request.merged
}}
if: >
github.repository != 'pentible/typescript-app-template' &&
github.event.pull_request.merged
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down
8 changes: 3 additions & 5 deletions .github/workflows/preview-close.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,9 @@ jobs:
preview-close:
name: Close preview
# TODO: remove github.repository check (and NOT the merged check), you don't need it (it's just here to prevent the template repo itself trying to deploy)
if: |
${{
github.repository != 'pentible/typescript-app-template' &&
!github.event.pull_request.merged
}}
if: >
github.repository != 'pentible/typescript-app-template' &&
!github.event.pull_request.merged
runs-on: ubuntu-latest
steps:
- name: Delete Preview Branch
Expand Down

0 comments on commit 6d82b3d

Please sign in to comment.