Skip to content

Sync Upstream

Sync Upstream #123

Workflow file for this run

name: Sync Upstream
on:
workflow_dispatch:
schedule:
- cron: '0 0 * * *'
jobs:
sync:
name: Sync
if: "github.repository_owner == 'materialred'"
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
with:
ref: dev
fetch-depth: 0
token: ${{ secrets.SYNC|| secrets.GITHUB_TOKEN }}
- name: Fetch and merge upstream
run: |
git remote add upstream https://github.com/mollyim/mollyim-android.git
git fetch upstream
git merge --ff-only upstream/main
- name: Push changes
run: |
git push origin dev
git tag | grep -xP 'v\d+(?:\.\d+){2,3}' | xargs -r git push origin