-
Notifications
You must be signed in to change notification settings - Fork 109
47 lines (46 loc) · 1.6 KB
/
develop-to-release.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
name: Develop to Release
on:
push:
branches:
- 'release/**'
jobs:
prepareReleaseBranch:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Check if the submodules are correct
run: |
branch="${{ github.ref_name }}"
./scripts/set-submodule-branches.sh --branch "$branch"
- name: Create Pull Request
id: cpr
uses: peter-evans/create-pull-request@v5
with:
commit-message: "chore(ci): update git submodules"
committer: GitHub <[email protected]>
author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>
title: Prepare release branch
labels: |
prepare-release-branch
automated-pr
draft: false
signoff: true
token: ${{ secrets.ORG_CI_GITHUB }}
- name: Approve Pull Request by CI Bot
if: ${{ steps.cpr.outputs.pull-request-number }}
run: |
gh pr review ${{ steps.cpr.outputs.pull-request-number }} --approve
env:
GH_TOKEN: ${{ github.token }}
- name: Approve Pull Request by CI User
if: ${{ steps.cpr.outputs.pull-request-number }}
run: |
gh pr review ${{ steps.cpr.outputs.pull-request-number }} --approve
env:
GH_TOKEN: ${{ secrets.ORG_CI_GITHUB_2 }}
- name: Bors Merge Pull Request
if: ${{ steps.cpr.outputs.pull-request-number }}
run: |
gh pr comment ${{ steps.cpr.outputs.pull-request-number }} --body "bors merge"
env:
GH_TOKEN: ${{ secrets.ORG_CI_GITHUB }}