From 32b8bf6cdf5f42554390d787a9131186e8885cd6 Mon Sep 17 00:00:00 2001 From: chenos Date: Tue, 16 Jul 2024 16:13:24 +0800 Subject: [PATCH] chore: auto merge --- .github/workflows/auto-merge.yml | 39 ++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .github/workflows/auto-merge.yml diff --git a/.github/workflows/auto-merge.yml b/.github/workflows/auto-merge.yml new file mode 100644 index 0000000000..19001011aa --- /dev/null +++ b/.github/workflows/auto-merge.yml @@ -0,0 +1,39 @@ +name: auto-merge + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +on: + push: + branches: + - 'main' + +jobs: + push-commit: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + repository: nocobase/nocobase + ssh-key: ${{ secrets.NOCOBASE_DEPLOY_KEY }} + persist-credentials: true + fetch-depth: 0 + - name: main -> next(nocobase) + run: | + git config --global user.email "actions@github.com" + git config --global user.name "GitHub Actions Bot" + git checkout main + git pull origin main + git checkout next + git merge main + git push origin next + - name: push nocobase(next) + uses: ad-m/github-push-action@master + with: + branch: next + ssh: true + repository: nocobase/nocobase + tags: true + atomic: true