Updates CI workflow to support main branch
Expands CI triggers and release conditions to include both main and master branches. Ensures workflows run consistently as the repository transitions or supports main as the default branch. Relates to MLO-469
This commit is contained in:
parent
06d9313a7c
commit
64b1ec9b3d
1 changed files with 3 additions and 3 deletions
6
.github/workflows/ci.yaml
vendored
6
.github/workflows/ci.yaml
vendored
|
|
@ -2,10 +2,10 @@ name: CI
|
|||
|
||||
on:
|
||||
push:
|
||||
branches: [master]
|
||||
branches: [main, master]
|
||||
tags: ["v*"]
|
||||
pull_request:
|
||||
branches: [master]
|
||||
branches: [main, master]
|
||||
schedule:
|
||||
- cron: 0 4 * * *
|
||||
|
||||
|
|
@ -42,7 +42,7 @@ jobs:
|
|||
name: Release processor image
|
||||
runs-on: ubuntu-latest
|
||||
needs: test
|
||||
if: github.event_name == 'push' && (startsWith(github.ref, 'refs/tags/v') || github.ref == 'refs/heads/master')
|
||||
if: github.event_name == 'push' && (startsWith(github.ref, 'refs/tags/v') || github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master')
|
||||
steps:
|
||||
- name: Checkout commit
|
||||
uses: actions/checkout@v4
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue