From 5def79c02df57506d836d9ff262bce9a1abb0938 Mon Sep 17 00:00:00 2001 From: Minsu Lee Date: Wed, 6 Dec 2023 18:07:39 +0900 Subject: [PATCH 1/3] ci: publish action should run on the main branch --- .github/workflows/publish.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 675dae6f4..9551f10bd 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -3,7 +3,7 @@ name: Publish on: push: branches: - - master + - main jobs: publish_dart_packages: From 2c1bead2523b04c9a95d9fef4cc729c4ca864070 Mon Sep 17 00:00:00 2001 From: Minsu Lee Date: Wed, 6 Dec 2023 18:07:39 +0900 Subject: [PATCH 2/3] 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 000000000..81c6a02f6 --- /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 From 1966d75900e9eae3e711df5b59f68706cb95f624 Mon Sep 17 00:00:00 2001 From: Minsu Lee Date: Wed, 6 Dec 2023 18:22:35 +0900 Subject: [PATCH 3/3] remove mirror action --- .github/workflows/mirror.yaml | 24 ------------------------ 1 file changed, 24 deletions(-) delete mode 100644 .github/workflows/mirror.yaml diff --git a/.github/workflows/mirror.yaml b/.github/workflows/mirror.yaml deleted file mode 100644 index 81c6a02f6..000000000 --- a/.github/workflows/mirror.yaml +++ /dev/null @@ -1,24 +0,0 @@ -# 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