From 2c1bead2523b04c9a95d9fef4cc729c4ca864070 Mon Sep 17 00:00:00 2001 From: Minsu Lee Date: Wed, 6 Dec 2023 18:07:39 +0900 Subject: [PATCH] ci: publish action should run on the main branch --- .github/workflows/mirror.yaml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/mirror.yaml diff --git a/.github/workflows/mirror.yaml b/.github/workflows/mirror.yaml new file mode 100644 index 00000000..81c6a02f --- /dev/null +++ b/.github/workflows/mirror.yaml @@ -0,0 +1,24 @@ +# Mirror master to main branches in the mobx.dart repository. +on: + push: + branches: + - 'main' + +# Declare default permissions as read only. +permissions: read-all + +jobs: + mirror_job: + permissions: + pull-requests: write + runs-on: ubuntu-latest + if: ${{ github.repository == 'mobxjs/mobx.dart' }} + name: Mirror main branch to master branch + steps: + - name: Mirror action step + id: mirror + uses: google/mirror-branch-action@30c52ee21f5d3bd7fb28b95501c11aae7f17eebb # v2.0 + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + source: 'main' + dest: 'master' \ No newline at end of file