chore: add workflow for main branch auto merge

This commit is contained in:
Hintay 2024-07-27 00:35:44 +09:00
parent 3a035e9930
commit 31bbab71c9
No known key found for this signature in database
GPG key ID: 120FC7FF121F2F2D
3 changed files with 24 additions and 0 deletions

22
.github/workflows/branches.yml vendored Normal file
View file

@ -0,0 +1,22 @@
name: Build Documents
on:
pull_request:
branches:
- 'dev'
types: [ closed ]
release:
types:
- published
jobs:
merge:
runs-on: ubuntu-latest
if: github.event.pull_request.merged == true || github.event.release.action == 'released'
steps:
- uses: actions/checkout@v4
- name: Merge dev to main
run: |
git checkout main
git pull --no-rebase origin dev
git push origin main

View file

@ -4,6 +4,7 @@ on:
push:
branches:
- '*'
- '!main'
paths:
- "app/**/*.js"
- "app/**/*.vue"

View file

@ -4,6 +4,7 @@ on:
push:
branches:
- '*'
- '!main'
paths:
- "docs/**/*.js"
- "docs/**/*.ts"