Lav #18188
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: Lav | |
on: | |
push: | |
branches: | |
- master | |
schedule: | |
- cron: "*/15 * * * *" # See https://crontab.guru/#0_7,9,11_*_*_1,3 | |
jobs: | |
auto_commit: | |
runs-on: ubuntu-latest | |
steps: | |
- name: DEBUG | |
run: echo "::debug::Ref = ${{github.ref}}" | |
- uses: actions/checkout@v3 | |
with: | |
persist-credentials: false | |
fetch-depth: 0 | |
- name: run sh | |
run: | | |
chmod +x run.sh | |
./run.sh | |
- name: Commit changes | |
run: | | |
git config --local user.email "[email protected]" | |
git config --local user.name "cise17" | |
git add -A | |
arr[0]="π’ auto commit" | |
arr[1]="π auto commit" | |
arr[2]="π‘ auto commit" | |
arr[3]="π΅ auto commit" | |
arr[4]="π£ auto commit" | |
arr[5]="β«οΈ auto commit" | |
arr[6]="βͺοΈ auto commit" | |
arr[7]="π€ auto commit" | |
arr[8]="π΄ auto commit" | |
rand=$[$RANDOM % ${#arr[@]}] | |
git commit -m "${arr[$rand]}" | |
- name: GitHub Push | |
uses: ad-m/[email protected] | |
with: | |
directory: "." | |
github_token: ${{ secrets.GITHUB_TOKEN }} |