Skip to content

Commit

Permalink
ci: publish action should run on the main branch
Browse files Browse the repository at this point in the history
  • Loading branch information
amondnet committed Dec 6, 2023
1 parent 5def79c commit 2b021ab
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/mirror.yaml
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'

0 comments on commit 2b021ab

Please sign in to comment.