-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: add workflow to automatically create dev to main PRs
- Loading branch information
1 parent
62528e7
commit 48fe9c0
Showing
1 changed file
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# 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: | ||
- uses: actions/checkout@v4 | ||
with: | ||
ref: main | ||
- 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 |