m2-dev-branch-updater #98
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: m2-dev-branch-updater | |
on: | |
schedule: | |
- cron: '0 0 * * 5' # every friday | |
jobs: | |
magento-updater: | |
runs-on: ubuntu-latest | |
name: 'weekly updater' | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
submodules: recursive | |
token: ${{secrets.PAT}} | |
#persist-credentials: false | |
- name: Weekly auto-updater | |
run: | | |
cd magento | |
git config --global user.name seyuf | |
git config --global user.email [email protected] | |
git config --global pull.rebase true | |
git checkout 2.4-develop | |
git pull | |
cd .. | |
git add magento | |
git commit -m 'weekly update' | |
git push origin master | |