ci: gate element-hq-only workflows on fork

Skip upstream deploy/publish/release, org automation, translations and
PR previews via a repo guard; allow PRs to release/* base branches.
This commit is contained in:
2026-06-28 09:44:07 +02:00
parent cf917c1ed5
commit bd6241ad9d
33 changed files with 65 additions and 88 deletions
@@ -12,6 +12,10 @@ jobs:
with:
script: |
const baseBranch = context.payload.pull_request.base.ref;
if (!['develop', 'staging'].includes(baseBranch) && !baseBranch.startsWith('feat/')) {
if (
!['develop', 'staging'].includes(baseBranch) &&
!baseBranch.startsWith('feat/') &&
!baseBranch.startsWith('release/')
) {
core.setFailed(`Invalid base branch: ${baseBranch}`);
}