mirror of
https://github.com/Dictionarry-Hub/database.git
synced 2025-12-09 23:37:04 +00:00
feat(workflow): add devSync workflow to sync dev branch with stable on PR
This commit is contained in:
18
.github/workflows/devSync.yml
vendored
Normal file
18
.github/workflows/devSync.yml
vendored
Normal 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
|
||||
Reference in New Issue
Block a user