-
Notifications
You must be signed in to change notification settings - Fork 50
38 lines (33 loc) · 1.11 KB
/
release-integration.yml
File metadata and controls
38 lines (33 loc) · 1.11 KB
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
##
# Workflow: release-integration auto PR
# Purpose: When a `release-integration/*` branch is created, automatically
# open a pull request targeting `dev` to integrate release changes.
##
name: Auto PR to dev for release-integration branches
permissions:
contents: read
pull-requests: write
on:
create:
concurrency:
group: auto-pr-release-integration-${{ github.event.ref }}
cancel-in-progress: false
jobs:
create-pr:
if: >
github.event.ref_type == 'branch' &&
startsWith(github.event.ref, 'release-integration/') &&
vars.ENABLE_RELEASE_AUTOMATION == 'true'
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Create Pull Request
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh pr create \
--base dev \
--head "${{ github.event.ref }}" \
--title "Auto PR: ${{ github.event.ref }} → dev" \
--body "This is an automated pull request created to integrate release changes into **dev**. Triggered when the branch **${{ github.event.ref }}** was published."