mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-11 18:35:51 +02:00
chore: add workflow for main branch auto merge
This commit is contained in:
parent
3a035e9930
commit
31bbab71c9
3 changed files with 24 additions and 0 deletions
22
.github/workflows/branches.yml
vendored
Normal file
22
.github/workflows/branches.yml
vendored
Normal 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
|
1
.github/workflows/build.yml
vendored
1
.github/workflows/build.yml
vendored
|
@ -4,6 +4,7 @@ on:
|
|||
push:
|
||||
branches:
|
||||
- '*'
|
||||
- '!main'
|
||||
paths:
|
||||
- "app/**/*.js"
|
||||
- "app/**/*.vue"
|
||||
|
|
1
.github/workflows/documents.yml
vendored
1
.github/workflows/documents.yml
vendored
|
@ -4,6 +4,7 @@ on:
|
|||
push:
|
||||
branches:
|
||||
- '*'
|
||||
- '!main'
|
||||
paths:
|
||||
- "docs/**/*.js"
|
||||
- "docs/**/*.ts"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue