You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
# 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 gallery 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/samples' }}
|
|
|
|
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'
|