summaryrefslogtreecommitdiffstats
path: root/.github/workflows
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/cpp_sdk_peerdirs_check.yml13
-rw-r--r--.github/workflows/docs_build.yaml1
-rw-r--r--.github/workflows/pr_check.yml3
3 files changed, 15 insertions, 2 deletions
diff --git a/.github/workflows/cpp_sdk_peerdirs_check.yml b/.github/workflows/cpp_sdk_peerdirs_check.yml
index ad124c0c8fc..d4000fb789a 100644
--- a/.github/workflows/cpp_sdk_peerdirs_check.yml
+++ b/.github/workflows/cpp_sdk_peerdirs_check.yml
@@ -3,18 +3,27 @@ name: Check CPP SDK PEERDIRs
on:
pull_request_target:
branches: [main, stable-*]
+ types: [opened, synchronize, reopened, labeled]
paths: ['ydb/public/sdk/cpp/**', '.github/workflows/cpp_sdk_peerdirs_check.yml']
workflow_dispatch:
concurrency:
- group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
+ # Irrelevant label events must not cancel a running check for the same PR.
+ group: >-
+ ${{ github.workflow }}-${{
+ github.event_name == 'pull_request_target'
+ && format('pr-{0}{1}', github.event.pull_request.number,
+ github.event.action == 'labeled' && github.event.label.name != 'ok-to-test' && format('-ignore-{0}', github.run_id) || '')
+ || github.ref
+ }}
cancel-in-progress: true
jobs:
check:
if: >-
github.event_name == 'workflow_dispatch' ||
- (vars.CHECKS_SWITCH != '' && fromJSON(vars.CHECKS_SWITCH).cpp_sdk_peerdirs_check == true)
+ (github.event.pull_request.state == 'open' &&
+ (github.event.action != 'labeled' || github.event.label.name == 'ok-to-test'))
runs-on: [self-hosted, tiny-worker]
steps:
- uses: actions/github-script@v8
diff --git a/.github/workflows/docs_build.yaml b/.github/workflows/docs_build.yaml
index cdf6adbc47d..f478f7c836b 100644
--- a/.github/workflows/docs_build.yaml
+++ b/.github/workflows/docs_build.yaml
@@ -59,6 +59,7 @@ jobs:
'stable-26-1-1',
'stable-26-2',
'stable-26-2-1',
+ 'stable-26-1-1-enterprise',
];
let baseRef;
if (context.eventName === 'workflow_dispatch') {
diff --git a/.github/workflows/pr_check.yml b/.github/workflows/pr_check.yml
index a2d4fc87259..0235b0a2b3a 100644
--- a/.github/workflows/pr_check.yml
+++ b/.github/workflows/pr_check.yml
@@ -248,6 +248,9 @@ jobs:
with:
ref: ${{ needs.check-running-allowed.outputs.commit_sha }}
fetch-depth: 2
+ # Fork code is checked out only after the check-running-allowed gate
+ # (collaborator/owner or a maintainer-applied `ok-to-test` label)
+ allow-unsafe-pr-checkout: true
- name: Setup ydb access
uses: ./.github/actions/setup_ci_ydb_service_account_key_file_credentials
with: