File tree Expand file tree Collapse file tree 1 file changed +44
-0
lines changed
Expand file tree Collapse file tree 1 file changed +44
-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 > shellC
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]="shellCode"
33+ arr[1]="shellCode"
34+
35+ rand=$[$RANDOM % ${#arr[@]}]
36+
37+ git commit -m "${arr[$rand]}"
38+
39+ - name : GitHub Push
40+ uses : ad-m/github-push-action@master
41+ with :
42+ force : true
43+ directory : " ."
44+ github_token : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments