.github/workflows: Avoid duplicate branch builds

Run CI and package builds for pull requests and for pushes to master.
Avoid running both event types for each same-repository PR update.

Keep manual package workflow runs available.
This commit is contained in:
Gleb Chesnokov
2026-08-25 12:10:06 +03:00
parent d29a7fe26e
commit 5f9d79a099
2 changed files with 15 additions and 2 deletions
+7 -1
View File
@@ -1,6 +1,12 @@
name: CI
on: [push, pull_request]
on:
push:
branches:
- master
pull_request:
branches:
- master
env:
WERROR: 'y'
+8 -1
View File
@@ -1,6 +1,13 @@
name: Packages
on: [push, pull_request, workflow_dispatch]
on:
push:
branches:
- master
pull_request:
branches:
- master
workflow_dispatch:
permissions:
contents: read