Skip to content

Commit

Permalink
Runs the CI when merged into main branch
Browse files Browse the repository at this point in the history
  • Loading branch information
paopa committed Mar 14, 2024
1 parent e7f6b91 commit 2b8ae5d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/ai-service-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
name: AI Service CI

on:
push:
branches: [ main ]
pull_request:
types: [ labeled ]

Expand All @@ -22,7 +24,7 @@ defaults:

jobs:
ci:
if: ${{ github.event.label.name == 'ci/ai-service' }}
if: ${{ github.event.label.name == 'ci/ai-service' || github.event_name == 'push' && github.ref == 'refs/heads/main' }}
strategy:
fail-fast: false
matrix:
Expand Down

0 comments on commit 2b8ae5d

Please sign in to comment.