mirror of
https://github.com/Novaloop-AG/healthchat-web.git
synced 2026-11-04 10:32:44 +00:00
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:
@@ -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}`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user