-
-
Notifications
You must be signed in to change notification settings - Fork 310
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: publish action should run on the main branch
- Loading branch information
Showing
1 changed file
with
24 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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.FLUTTERMIRRORINGBOT_TOKEN }} | ||
source: 'main' | ||
dest: 'master' |