Skip to content

ci

ci #156

Workflow file for this run

name: ci
on:
schedule:
- cron: "0 1 * * *"
- cron: "0 5 * * *"
- cron: "0 10 * * *"
workflow_dispatch:
jobs:
autogreen:
runs-on: ubuntu-latest
steps:
- name: Clone repository
uses: actions/checkout@v2
- name: Random Decide for Submitting
id: random_decision
run: echo "should_commit=$(( $RANDOM % 2 ))" >> $GITHUB_ENV
- name: Conditional commit
if: env.should_commit == '1'
run: |
git config --local user.email "[email protected]"
git config --local user.name "kyrxie"
git remote set-url origin https://${{ github.actor }}:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}
git pull --rebase
git commit --allow-empty -m "Make Program Every Day!"
git push