Skip to content

Commit

Permalink
Fix for trigger on PR on not default branch
Browse files Browse the repository at this point in the history
  • Loading branch information
sshrihar committed Sep 23, 2024
1 parent e21119c commit 74ed13f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/pr-deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,13 @@ name: hosted branch pr deployment
on:
pull_request:
types: [opened, edited, reopened]
branches:
- hosted/*
push:
branches:
- dev
workflow_dispatch:

jobs:
deploy:
if: startsWith(github.head_ref, 'hosted/') || github.ref == 'refs/heads/dev'
uses: ./.github/workflows/build_and_deploy.yml
secrets: inherit

0 comments on commit 74ed13f

Please sign in to comment.