Skip to content

Commit e969d82

Browse files
authored
[ENHANCEMENT] ci: Review event triggers to reduce CI runs (#5075)
<!-- Please include a summary of the changes and the related issue. Please also include relevant motivation and context. List any dependencies that are required for this change. --> - Always run on `main`, `develop`, and `releases/**` branches - Pull request runs will be filtered by affected files - Docker images will be built on `main`, `develop`, and `releases/**` or whatever PR affecting server changes. **Type of change** <!-- Please delete options that are not relevant. Remember to title the PR according to the type of change --> - Refactor (change restructuring the codebase without changing functionality) - Improvement (change adding some improvement to an existing functionality) **How Has This Been Tested** <!-- Please add some reference about how your feature has been tested. --> Running some actions **Checklist** <!-- Please go over the list and make sure you've taken everything into account --> - I added relevant documentation - follows the style guidelines of this project - I did a self-review of my code - I made corresponding changes to the documentation - I confirm My changes generate no new warnings - I have added tests that prove my fix is effective or that my feature works - I have added relevant notes to the CHANGELOG.md file (See https://keepachangelog.com/)
1 parent a145c87 commit e969d82

File tree

3 files changed

+23
-0
lines changed

3 files changed

+23
-0
lines changed

.github/workflows/argilla-server.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,14 @@ on:
88
workflow_dispatch:
99

1010
push:
11+
branches:
12+
- main
13+
- develop
14+
- releases/**
1115

1216
pull_request:
17+
paths:
18+
- "argilla-server/**"
1319

1420
jobs:
1521
build:
@@ -109,6 +115,7 @@ jobs:
109115
if: |
110116
github.ref == 'refs/heads/main'
111117
|| github.ref == 'refs/heads/develop'
118+
|| contains(github.ref, "releases/")
112119
|| github.event_name == 'workflow_dispatch'
113120
|| github.event_name == 'pull_request'
114121
needs:

.github/workflows/argilla-v1.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,14 @@ on:
88
workflow_dispatch:
99

1010
push:
11+
branches:
12+
- main
13+
- develop
14+
- releases/**
15+
16+
pull_request:
17+
paths:
18+
- "argilla-v1/**"
1119

1220
jobs:
1321
build:

.github/workflows/argilla.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,14 @@ on:
88
workflow_dispatch:
99

1010
push:
11+
branches:
12+
- main
13+
- develop
14+
- releases/**
15+
16+
pull_request:
17+
paths:
18+
- "argilla/**"
1119

1220
jobs:
1321
build:

0 commit comments

Comments
 (0)