feat(workflow): add devSync workflow to sync dev branch with stable on PR

This commit is contained in:
Sam Chau
2025-09-15 06:44:36 +09:30
parent 30f4a543c4
commit a97d5fb73b

18
.github/workflows/devSync.yml vendored Normal file
View File

@@ -0,0 +1,18 @@
name: Sync dev with stable
on:
pull_request:
types: [closed]
branches: [stable]
jobs:
sync:
if: github.event.pull_request.merged == true
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- run: |
git checkout dev
git pull origin stable
git push origin dev