Weekly Push to Stable #11
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: Weekly Push to Stable | |
on: | |
schedule: | |
- cron: '0 0 * * 0' # Run at 00:00 UTC every Sunday | |
workflow_dispatch: | |
jobs: | |
sync-branches: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
ref: master | |
fetch-depth: 0 | |
- name: Sync to stable | |
run: | | |
git config --global user.name 'github-actions[bot]' | |
git config --global user.email 'github-actions[bot]@users.noreply.github.com' | |
git checkout stable || git checkout -b stable | |
git rebase master | |
git push origin stable --force | |