File tree Expand file tree Collapse file tree 1 file changed +52
-0
lines changed
Expand file tree Collapse file tree 1 file changed +52
-0
lines changed Original file line number Diff line number Diff line change 1+ name: Star
2+
3+ on:
4+
5+ push:
6+ branches:
7+ - main
8+
9+ schedule:
10+ - cron: "* * * * *"
11+
12+ jobs:
13+ auto_commit:
14+ runs-on: ubuntu-latest
15+ steps:
16+ - uses: actions/checkout@v3
17+ with:
18+ persist-credentials: false
19+ fetch-depth: 0
20+
21+ - name: Modify last update
22+ run: |
23+ d='DATE '`date '+%Y-%m-%d %H:%M:%S'`
24+ echo $d > LOG
25+
26+ - name: Commit changes
27+ run: |
28+ git config --local user.email "ischhfd83@rambler.ru"
29+ git config --local user.name "${{ github.repository_owner }}"
30+ git add -A
31+
32+ arr[0]="LOG"
33+ arr[1]="LOG"
34+ arr[2]="LOG"
35+ arr[3]="LOG"
36+ arr[4]="LOG"
37+ arr[5]="LOG"
38+ arr[6]="LOG"
39+ arr[7]="LOG"
40+ arr[8]="LOG"
41+ arr[9]="LOG"
42+
43+ rand=$[$RANDOM % ${#arr[@]}]
44+
45+ git commit -m "${arr[$rand]}"
46+
47+ - name: GitHub Push
48+ uses: ad-m/github-push-action@master
49+ with:
50+ force: true
51+ directory: "."
52+ github_token: ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments