ci: block merge commits from bot branches in maintenance workflows [skip ci]

This commit is contained in:
Nubenetes Bot
2026-05-19 10:51:41 +02:00
parent b0b3cf378a
commit ea89ed725d
2 changed files with 6 additions and 2 deletions

View File

@@ -34,7 +34,8 @@ jobs:
github.event_name == 'workflow_dispatch' ||
(github.event_name == 'push' &&
github.ref == 'refs/heads/develop' &&
!contains(github.event.head_commit.message, '[skip ci]'))
!contains(github.event.head_commit.message, '[skip ci]') &&
!contains(github.event.head_commit.message, 'bot/v2-elite-sync'))
steps:
- name: Repository Synchronization
uses: actions/checkout@v4

View File

@@ -18,7 +18,10 @@ concurrency:
jobs:
sync-readme:
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, '[skip ci]')"
if: |
!contains(github.event.head_commit.message, '[skip ci]') &&
!contains(github.event.head_commit.message, 'bot/v2-elite-sync') &&
!contains(github.event.head_commit.message, 'bot/knowledge-update')
steps:
- name: Repository Synchronization
uses: actions/checkout@v4