From be92ccb5171759d7762923a96871b9340d6bb9fd Mon Sep 17 00:00:00 2001 From: godofredoc Date: Thu, 2 Jun 2022 12:02:20 -0700 Subject: [PATCH] Revert "All the workflows have been migrated to use main. (#5874)" This reverts commit 7cad5998706043997a6bb046061e818ccbaf3cf6. --- .github/workflows/mirror.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/mirror.yml diff --git a/.github/workflows/mirror.yml b/.github/workflows/mirror.yml new file mode 100644 index 000000000000..9cfaf20d6cf0 --- /dev/null +++ b/.github/workflows/mirror.yml @@ -0,0 +1,28 @@ +# Copyright 2013 The Flutter Authors. All rights reserved. +# Use of this source code is governed by a BSD-style license that can be +# found in the LICENSE file. + +# Mirror master to main branches in the plugins 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 == 'flutter/plugins' }} + name: Mirror main branch to master branch + steps: + - name: Mirror action step + id: mirror + uses: google/mirror-branch-action@c6b07e441a7ffc5ae15860c1d0a8107a3a151db8 + with: + github-token: ${{ secrets.FLUTTERMIRRORINGBOT_TOKEN }} + source: 'main' + dest: 'master'