forked from tarantool/tarantool
-
Notifications
You must be signed in to change notification settings - Fork 0
103 lines (86 loc) · 3.52 KB
/
submodule_update.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
name: submodule_update
on:
push:
branches:
- 'master'
- 'release/**'
env:
EE_FEATURE_BRANCH: 'TarantoolBot/update-tarantool-${{ github.ref_name }}'
SDK_FEATURE_BRANCH: 'TarantoolBot/test-ce-${{ github.ref_name }}'
jobs:
update-ee:
# Run on push to the 'master' and release branches in tarantool/tarantool
# repo only.
if: github.repository == 'tarantool/tarantool'
runs-on: [ self-hosted, Linux, x86_64, flavor-1-2 ]
outputs:
commit-sha: ${{ steps.update-ee.outputs.sha }}
env:
PR_TITLE_PREFIX: ${{ github.ref_name != 'master' &&
format('[{0}] ', github.ref_name) || '' }}
PR_TITLE: 'tarantool: bump to new version'
steps:
- name: Update submodule tarantool in tarantool/tarantool-ee@${{ github.ref_name }}
uses: tarantool/actions/update-submodule@master
id: update-ee
with:
repository: 'tarantool/tarantool-ee'
github_token: ${{ secrets.EE_UPDATE_SUBMODULE_TOKEN }}
# checkout `master` or versioned stable branch
checkout_branch: ${{ github.ref_name }}
feature_branch: ${{ env.EE_FEATURE_BRANCH }}
submodule: 'tarantool'
update_to: ${{ github.sha }}
pr_against_branch: ${{ github.ref_name }}
pr_title: ${{ env.PR_TITLE_PREFIX }}${{ env.PR_TITLE }}
pr_description: >-
Just a regular auto-update of tarantool submodule to bring new features
and bug fixes into tarantool-ee.
commit_message: |
tarantool: bump to new version
NO_DOC=submodule update
NO_TEST=submodule update
NO_CHANGELOG=submodule update
- name: Send VK Teams message on failure
if: failure()
uses: ./.github/actions/report-job-status
with:
bot-token: ${{ secrets.VKTEAMS_BOT_TOKEN }}
test-sdk:
# Run on push to the 'master' and release branches in tarantool/tarantool
# repo only.
if: github.repository == 'tarantool/tarantool'
runs-on: [ self-hosted, Linux, x86_64, flavor-1-2 ]
needs: update-ee
env:
EE_SHA: ${{ needs.update-ee.outputs.commit-sha }}
steps:
- name: Set sdk submodule name
run: echo "SDK_SUBMODULE=tarantool-$(basename ${{ github.ref_name }})" >> $GITHUB_ENV
- name: Update submodule ${{ env.SDK_SUBMODULE }} in tarantool/sdk@${{ env.SDK_FEATURE_BRANCH }}
uses: tarantool/actions/update-submodule@master
id: test-sdk
with:
repository: 'tarantool/sdk'
github_token: ${{ secrets.EE_UPDATE_SUBMODULE_TOKEN }}
checkout_branch: 'master'
# Same branch name pattern as used in sdk_test workflow
feature_branch: ${{ env.SDK_FEATURE_BRANCH }}
submodule: ${{ env.SDK_SUBMODULE }}
update_to: ${{ env.EE_SHA }}
create_pr: 'false'
commit_message: |
test: ee@${{ github.ref_name }} -> sdk:${{ env.SDK_SUBMODULE }}
bump submodule ${{ env.SDK_SUBMODULE }} to commit
tarantool/tarantool-ee@${{ env.EE_SHA }},
which is the HEAD of branch
tarantool/tarantool-ee@${{ env.EE_FEATURE_BRANCH }},
just updated with commit
tarantool/tarantool@${{ github.sha }},
which is the HEAD of branch
tarantool/tarantool@${{ github.ref_name }}.
- name: Send VK Teams message on failure
if: failure()
uses: ./.github/actions/report-job-status
with:
bot-token: ${{ secrets.VKTEAMS_BOT_TOKEN }}