Skip to content

Commit

Permalink
[ENHANCEMENT] ci: Review event triggers to reduce CI runs (#5075)
Browse files Browse the repository at this point in the history
<!-- 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/)
  • Loading branch information
frascuchon authored Jun 21, 2024
1 parent a145c87 commit e969d82
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/argilla-server.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,14 @@ on:
workflow_dispatch:

push:
branches:
- main
- develop
- releases/**

pull_request:
paths:
- "argilla-server/**"

jobs:
build:
Expand Down Expand Up @@ -109,6 +115,7 @@ jobs:
if: |
github.ref == 'refs/heads/main'
|| github.ref == 'refs/heads/develop'
|| contains(github.ref, "releases/")
|| github.event_name == 'workflow_dispatch'
|| github.event_name == 'pull_request'
needs:
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/argilla-v1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,14 @@ on:
workflow_dispatch:

push:
branches:
- main
- develop
- releases/**

pull_request:
paths:
- "argilla-v1/**"

jobs:
build:
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/argilla.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,14 @@ on:
workflow_dispatch:

push:
branches:
- main
- develop
- releases/**

pull_request:
paths:
- "argilla/**"

jobs:
build:
Expand Down

0 comments on commit e969d82

Please sign in to comment.