Skip to content
This repository has been archived by the owner on Jan 4, 2025. It is now read-only.

Sync with upstream #566

Sync with upstream

Sync with upstream #566

name: Sync with upstream
on:
schedule:
- cron: "30 22 * * *"
workflow_dispatch:
jobs:
merge-upstream:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
token: ${{ secrets.PAT }}
- name: Setup git
run: |
git config --global user.email ${{ github.actor }}@users.noreply.github.com
git config --global user.name ${{ github.actor }}
git config --global pull.rebase false
- name: Merge changes from main
run: |
git pull /~https://github.com/LSPosed/MagiskOnWSALocal main --no-edit
- name: Compare changes
id: compare
run: |
git diff --name-only HEAD origin/main
echo "changes=$(git diff --name-only HEAD origin/main | tr '\n' ' ')" >> "$GITHUB_OUTPUT"
- name: Push all changes
if: ${{ steps.compare.outputs.changes != '' }}
run: |
git push origin main