generated from Megumiiiiii/abogoboga-hesoyam
-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (42 loc) · 1.24 KB
/
autocommit.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
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 }}