Automatic merge #7
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: Automatic merge | |
on: | |
schedule: | |
# Run every Sunday at 03:09 (AEDT) | |
# AEDT is UTC+10 --> Sunday at 03:09 AEDT is Saturday at 17:09 UTC | |
- cron: "9 17 * * SAT" | |
jobs: | |
auto-merge: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@master | |
with: | |
ref: main | |
fetch-depth: 0 | |
token: ${{ secrets.ADMIN_TOKEN }} | |
- name: Merge development to main | |
run: | | |
git config --global user.name "GitHub Actions" | |
git config --global user.email "[email protected]" | |
git merge --no-ff -X theirs origin/development -m "Automatically merge 'development' to 'main'. | |
Merge commit issued by the automatic_merge workflow." | |
git push origin main |