This commit is contained in:
30
.gitea/workflows/merge-dev.yaml
Normal file
30
.gitea/workflows/merge-dev.yaml
Normal file
@@ -0,0 +1,30 @@
|
||||
name: Auto-Merge Dev
|
||||
run-name: Merging changes from dev
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
types: [opened, synchronize, reopened]
|
||||
branches: ["feature/*"]
|
||||
push:
|
||||
branches: ["feature/*"]
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
branch:
|
||||
description: "Branch to merge from dev"
|
||||
required: true
|
||||
default: "feature/example"
|
||||
|
||||
jobs:
|
||||
auto-merge-dev:
|
||||
runs-on: windows # Ejecutar directamente en el host Windows
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Merge changes from dev
|
||||
run: |
|
||||
git switch dev
|
||||
git pull origin dev
|
||||
git switch -
|
||||
git merge dev
|
||||
git push origin
|
Reference in New Issue
Block a user