Skip to content

Commit 0a5a608

Browse files
committed
ci: add separate workflow for prestable sync
Refs: #20359, #21069
1 parent 75fa7e5 commit 0a5a608

File tree

2 files changed

+41
-16
lines changed

2 files changed

+41
-16
lines changed

.github/workflows/prestable_sync.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Sync prestables
2+
on:
3+
schedule:
4+
- cron: "30 0 * * *" # At 00:30 -- for PR creation
5+
workflow_dispatch:
6+
concurrency:
7+
group: ${{ github.workflow }}
8+
cancel-in-progress: true
9+
env:
10+
GH_TOKEN: ${{ secrets.YDBOT_TOKEN }}
11+
jobs:
12+
create-pr:
13+
runs-on: ubuntu-latest
14+
strategy:
15+
fail-fast: false
16+
matrix:
17+
include:
18+
- base_branch: prestable-25-2
19+
head_branch: stable-25-1
20+
label: sync-prestable
21+
- base_branch: prestable-25-3
22+
head_branch: main
23+
label: sync-prestable
24+
steps:
25+
- name: checkout
26+
uses: actions/checkout@v4
27+
with:
28+
fetch-depth: 0
29+
sparse-checkout: |
30+
.github
31+
ydb/ci/
32+
- uses: ./.github/actions/rightlib_sync
33+
with:
34+
base_branch: ${{ matrix.base_branch }}
35+
head_branch: ${{ matrix.head_branch }}
36+
label: ${{ matrix.label }}
37+
repository: ${{ github.repository }}
38+
gh_personal_access_token: ${{ env.GH_TOKEN }}

.github/workflows/rightlib_sync.yml

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,6 @@ env:
1111
jobs:
1212
create-pr:
1313
runs-on: ubuntu-latest
14-
strategy:
15-
fail-fast: false
16-
matrix:
17-
include:
18-
- base_branch: prestable-25-2
19-
head_branch: stable-25-1
20-
label: sync-prestable
21-
- base_branch: prestable-25-3
22-
head_branch: main
23-
label: sync-prestable
24-
- base_branch: main
25-
head_branch: rightlib
26-
label: rightlib
2714
steps:
2815
- name: checkout
2916
uses: actions/checkout@v4
@@ -34,8 +21,8 @@ jobs:
3421
ydb/ci/
3522
- uses: ./.github/actions/rightlib_sync
3623
with:
37-
base_branch: ${{ matrix.base_branch }}
38-
head_branch: ${{ matrix.head_branch }}
39-
label: ${{ matrix.label }}
24+
base_branch: main
25+
head_branch: rightlib
26+
label: rightlib
4027
repository: ${{ github.repository }}
4128
gh_personal_access_token: ${{ env.GH_TOKEN }}

0 commit comments

Comments
 (0)