Skip to content

Commit

Permalink
ci: add workflow to automatically create dev to main PRs
Browse files Browse the repository at this point in the history
  • Loading branch information
niekcandaele committed Aug 17, 2024
1 parent 62528e7 commit 48fe9c0
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/dev-to-main-pr.yml
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

0 comments on commit 48fe9c0

Please sign in to comment.