diff --git a/.github/workflows/pr-deployment.yml b/.github/workflows/pr-deployment.yml index 86a96125..d66b231f 100644 --- a/.github/workflows/pr-deployment.yml +++ b/.github/workflows/pr-deployment.yml @@ -2,8 +2,6 @@ name: hosted branch pr deployment on: pull_request: types: [opened, edited, reopened] - branches: - - hosted/* push: branches: - dev @@ -11,6 +9,6 @@ on: jobs: deploy: + if: startsWith(github.head_ref, 'hosted/') || github.ref == 'refs/heads/dev' uses: ./.github/workflows/build_and_deploy.yml secrets: inherit - \ No newline at end of file