Skip to content

Commit

Permalink
feat: update condition for run Build on Merge action
Browse files Browse the repository at this point in the history
  • Loading branch information
montasim committed Aug 12, 2024
1 parent bb9e76e commit 470c117
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/build-on-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,13 @@ on:
pull_request:
types: [closed]
branches:
- '**'
- main
paths-ignore:
- '**' # Ignore all paths to restrict to specific conditions

jobs:
check-merge:
if: github.event.pull_request.merged == true
if: github.event.pull_request.merged == true && github.base_ref == 'main' && github.head_ref == 'development'
runs-on: ubuntu-latest

steps:
Expand Down

0 comments on commit 470c117

Please sign in to comment.