Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Revert "All the workflows have been migrated to use main. (#5874)"
This reverts commit 7cad599.
  • Loading branch information
godofredoc authored Jun 2, 2022
commit be92ccb5171759d7762923a96871b9340d6bb9fd
28 changes: 28 additions & 0 deletions .github/workflows/mirror.yml
Original file line number Diff line number Diff line change
@@ -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'