From c83c6e28984824f15beb724105887df708cf5a3c Mon Sep 17 00:00:00 2001 From: godofredoc Date: Mon, 26 Jun 2023 10:12:51 -0700 Subject: [PATCH] Revert "Remove master mirroring workflow." (flutter/engine#43206) Reverts flutter/engine#42681 --- .../src/flutter/.github/workflows/mirror.yml | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 engine/src/flutter/.github/workflows/mirror.yml diff --git a/engine/src/flutter/.github/workflows/mirror.yml b/engine/src/flutter/.github/workflows/mirror.yml new file mode 100644 index 0000000000..191b0ab3b2 --- /dev/null +++ b/engine/src/flutter/.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 engine 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/engine' }} + name: Mirror main branch to master branch + steps: + - name: Mirror action step + id: mirror + uses: google/mirror-branch-action@30c52ee21f5d3bd7fb28b95501c11aae7f17eebb + with: + github-token: ${{ secrets.FLUTTERMIRRORINGBOT_TOKEN }} + source: 'main' + dest: 'master'