From a97d5fb73b32fc879793a078c1bf531f29aba44f Mon Sep 17 00:00:00 2001 From: Sam Chau Date: Mon, 15 Sep 2025 06:44:36 +0930 Subject: [PATCH] feat(workflow): add devSync workflow to sync dev branch with stable on PR --- .github/workflows/devSync.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/devSync.yml diff --git a/.github/workflows/devSync.yml b/.github/workflows/devSync.yml new file mode 100644 index 0000000..f2e74c5 --- /dev/null +++ b/.github/workflows/devSync.yml @@ -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 \ No newline at end of file