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:
Taddeus 2025-11-03 14:47:25 +02:00
parent 06d9313a7c
commit 64b1ec9b3d

View file

@ -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