CI: Run the "snapshot" action only on the main branch

Make sure that the "snapshot" action only runs when pushing changes
to the main branch - "riscv". No need to run it for individual
commits under side-branches.

Change-Id: I5877a3b5635fc6053af7718e38a4d5a093e02744
Signed-off-by: Jan Matyas <jan.matyas@codasip.com>
This commit is contained in:
Jan Matyas 2025-02-14 15:52:48 +01:00
parent 8f59570468
commit 348aa00e06
1 changed files with 4 additions and 1 deletions

View File

@ -2,7 +2,10 @@
# Copyright (C) 2020 by Tarek BOUCHKATI <tarek.bouchkati@gmail.com>
on: push
on:
push:
branches:
- riscv
name: OpenOCD Snapshot