Sync master with main #34
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
name: Sync master with main | |
on: | |
schedule: | |
- cron: "0 0 * * *" # Runs every night at midnight UTC | |
workflow_dispatch: # Allows manual triggering | |
permissions: | |
contents: write # Grants write access to push changes | |
jobs: | |
sync-branches: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Setup Git | |
run: | | |
git config --global user.name "github-actions[bot]" | |
git config --global user.email "github-actions[bot]@users.noreply.github.com" | |
- name: Sync master with main | |
run: | | |
git checkout master | |
git pull origin master | |
git merge origin/main --no-edit | |
git push origin master |