ci #216
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: ci | |
on: | |
push: | |
branches: | |
- main | |
schedule: | |
- cron: 30 15 */2 * * | |
watch: | |
types: [started] | |
jobs: | |
autogreen: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Clone repository | |
uses: actions/checkout@v2 | |
- name: Auto green | |
run: | | |
git config --local user.email ${{ secrets.EMAIL }} | |
git config --local user.name ${{ secrets.NAME }} | |
git remote set-url origin https://${{ github.actor }}:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }} | |
git pull --rebase | |
git commit --allow-empty -m "a commit a day keeps your girlfriend stay" | |
git push |