Automated PR for merging master into gh-pages #22
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: Automated PR for merging master into gh-pages | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '0 0 * * 0' # Runs every Sunday at 00:00 | |
jobs: | |
merge: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Configure Git | |
run: | | |
git config --global user.name 'GitHub Actions' | |
git config --global user.email '[email protected]' | |
- name: Merge master into gh-pages | |
run: | | |
git checkout gh-pages | |
git merge --no-edit master || echo "Merge conflict occurred. Continuing the process." | |
git push origin gh-pages || echo "Push failed. Continuing the process." | |
- name: Create Pull Request | |
uses: peter-evans/create-pull-request@v3 | |
with: | |
title: 'Weekly merge: master into gh-pages' | |
branch: 'gh-pages' | |
base: 'master' | |
auto_merge: false |