-
Notifications
You must be signed in to change notification settings - Fork 6
33 lines (31 loc) · 1.01 KB
/
dev-to-main-pr.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
# Takaro merges feature branches into the development branch first
# and then merges the development branch into the main branch.
# This workflow automates the process of creating a pull request from the development branch to the main branch.
name: Create dev to main PR
on:
push:
branches:
- development
jobs:
mainPromotion:
runs-on: ubuntu-latest
steps:
- name: Generate token
id: generate_token
uses: tibdex/github-app-token@v1
with:
app_id: ${{ secrets.TAKARO_CI_APP_ID }}
private_key: ${{ secrets.TAKARO_CI_APP_PRIV_KEY }}
- uses: actions/checkout@v4
with:
ref: main
token: ${{ steps.generate_token.outputs.token }}
- name: Reset promotion branch
run: |
git fetch origin development:development
git reset --hard development
- name: Create Pull Request
uses: peter-evans/create-pull-request@v6
with:
branch: main-promotion
labels: skip-changelog