Skip to content

Commit

Permalink
Merge pull request #3 from otaxhu/dev
Browse files Browse the repository at this point in the history
feat: rebase-dev.yml created
  • Loading branch information
otaxhu authored Oct 28, 2024
2 parents 337116d + 9bb7624 commit f5ffa65
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/rebase-dev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Auto-Rebase dev branch after main accepted pull request

on:
pull_request:
branches:
- main

types:
- closed

jobs:
rebase_dev:
runs-on: ubuntu-latest
if: github.event.pull_request.merged == true
steps:
- uses: actions/checkout@v4
with:
ref: main

- name: Checkout dev branch and rebase onto main
run: |
git fetch origin dev
git checkout dev
git rebase main
- name: Push rebased dev branch
run: |
git push origin dev
env:
GITHUB_TOKEN: ${{ github.token }}

0 comments on commit f5ffa65

Please sign in to comment.